W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

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

From: Sylvain Spinelli <sylvain.spinelli@free.fr>
Date: Wed, 03 Oct 2012 14:33:57 +0200
Message-ID: <506C30B5.2060606@free.fr>
To: www-dom@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 October 2012 12:20:49 GMT