Re: getElementById method on SVGSVGElement

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.

Cameron

-- 
  e-mail : cam (at) mcc.id.au    	icq : 26955922
     web : http://mcc.id.au/	        msn : cam-msn (at) aka.mcc.id.au
  office : +61399055779		     jabber : heycam (at) jabber.org

Received on Monday, 7 February 2005 11:04:13 UTC