Cross-browser attribute manipulation.
$ component install matthewp/attr
attr(el).get('id'); // -> foo
attr(el).set('id', 'foo'); // -> `attr(el)` to allow chaining
Returns a new instance of Attr.
An object for manipulation of attributes on an element.
Gets the attribute name as a string.
Sets the attribute name to val.
Returns true if the attribute name is set.
MIT