Closed grommett closed 5 years ago
0.22
has it, but watch out HTMLElement always have a style
attribute so if you think length
should be ever 0, that won't likely be the case (it's 1).
However, .item(0)
works now, so I hope that's enough 👋
@WebReflection That's perfect. Thank you!
Would you consider a PR implementing
NamedNodeMap
interface in the Element class? Or at least exposing theitem
method?Currently, the project I'm working in makes a call to
element.attributes.item
and fails when the element is created using basicHTML 😢