W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

Re: L3 Core: Attr.isId(), Element.setIdAttribute(), Element.setIdAttributeNS(), setIdAttributeNode()

From: Philippe Le Hegaret <plh@w3.org>
Date: 28 Aug 2003 15:27:33 -0400
To: Curt Arnold <carnold@houston.rr.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1062098852.23313.206.camel@jfouffa.w3.org>

On Fri, 2003-08-01 at 00:10, Curt Arnold wrote:
> isId() is a declared as a method, though it would be more appropriate as 
> an attribute.

done, but as a read-only attribute.

>   If made a read-write attribute, then 
> Element.setIdAttribute(), Element.setIdAttributeNS() and 
> Element.setAttributeNode() could be eliminated since you could do the 
> equivalent using Element.getAttributeNode[NS]().isId = true | false.

correct, but that would require the implementation to create an
attribute node for the invocation of isId. The purpose of the
setIdAttribute* is to provide the ability for the element node to be
returned by getElementById, which does not require creating an Attr
node.

Philippe
Received on Thursday, 28 August 2003 15:28:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT