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

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 UTC