Re: [whatwg/dom] "Attr? setAttributeNode(Attr attr);" (#205)

May be this question could help you too.

Ok let us concentrate on using:

Element.setAttribute()/getAttribute()/hasAttribute()/removeAttribute()


But how can we determine what nodeType we have -if we need this- without using:

attributes or getAttributeNode(), since getAttribute() returns a String where .nodeType will end up with undefined?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/205#issuecomment-206847104

Received on Thursday, 7 April 2016 12:18:32 UTC