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

Re: getElementById method on SVGSVGElement

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Mon, 7 Feb 2005 22:04:04 +1100
To: www-svg@w3.org
Message-ID: <20050207110404.GA16389@port.mcc.id.au>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:55 UTC