[DOM] DOM4 draft : getAttributeNode() and getAttributeNodeNS() substitute ?

Getting Attr object from an Element by its QName or localName + ns is 
really useful.
Since Attr class no longer inherits from Node, "getAttributeNode" and 
"getAttributeNodeNS" names are misfit.

Perhaps we could have 2 new methods :
- Attr? getAttr(DOMString name);
- Attr? getAttrNS(DOMString? namespace, DOMString localName);

WDYT ?

Thanks,
Sylvain

Received on Thursday, 4 October 2012 12:20:46 UTC