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

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

From: Ms2ger <ms2ger@gmail.com>
Date: Thu, 04 Oct 2012 18:41:32 +0200
Message-ID: <506DBC3C.8000601@gmail.com>
To: www-dom@w3.org
On 10/03/2012 02:33 PM, Sylvain Spinelli wrote:
> 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 ?

We won't add aliases for features we're trying to remove from the 
platform. If it turns out that we can't remove 
getAttributeNode/getAttributeNodeNS, or that there's a good use case for 
them, we'll add those back, under the names they always had.

HTH
Ms2ger
Received on Thursday, 4 October 2012 16:42:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 4 October 2012 16:42:15 GMT