You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if setting attribute is correctly implemented. The interesting thing about this.attribtues is that it's map, where we have both indices and key names. So if we have this html
<divid="foo" bar="qux">hello</div>
then el.attributes[1] will be AttributeNode, but also it can be accessed with el.attributes.bar
Activity
tunnckoCore commentedon Sep 11, 2017
It would be just that
if setting attribute is correctly implemented. The interesting thing about
this.attribtuesis that it's map, where we have both indices and key names. So if we have this htmlthen
el.attributes[1]will be AttributeNode, but also it can be accessed withel.attributes.bardevelopit commentedon Jan 22, 2018
Definitely open to a PR for this! I'm curious how small it could be.