W3C home > Mailing lists > Public > www-svg@w3.org > February 2005

Re: getElementById method on SVGSVGElement

From: Robin Berjon <robin.berjon@expway.fr>
Date: Mon, 07 Feb 2005 12:31:29 +0100
Message-ID: <42075191.7030901@expway.fr>
To: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Cc: www-svg@w3.org

Cameron McCormack wrote:
> Robin Berjon:
>>In fact, if I read DOM 3 Core correctly, the attachement of the node to 
>>the tree appears to be irrelevant. If you look at the spec, the isId 
>>field on Attr says "when it is [of type ID] and its value is unique, the 
>> ownerElement of this attribute can be retrieved  using the method 
>>Document.getElementById"[0]. Based on that, I would expect that given 
>>element 'el' not attached to the tree but belonging to document 'doc' 
>>and having an attribute 'foo' of value 'bar', if I did 
>>el.setIdAttribute('foo', true) it appears to be expected that 
>>doc.getElementById('bar') would return el.
> In which case I guess there would be no need for getElementById on
> XBLShadowTreeElement.

Now, shadow trees are a completely different kettle of walruses. IDs 
inside a given shadow tree are scoped to that shadow tree and neither 
conflict with IDs in the document nor ones within other shadow trees in 
the same document. There is indeed quite a solid chance for conflict 
and/or implementation issues in this area but I haven't yet had time to 

Robin Berjon
   Research Scientist
   Expway, http://expway.com/
Received on Monday, 7 February 2005 11:31:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:02 UTC