|
Re: getElementById method on SVGSVGElement: msg#00034web.svg
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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: getElementById method on SVGSVGElement: 00034, Robin Berjon |
|---|---|
| Next by Date: | Re: getElementById method on SVGSVGElement: 00034, Robin Berjon |
| Previous by Thread: | Re: getElementById method on SVGSVGElementi: 00034, Robin Berjon |
| Next by Thread: | Re: getElementById method on SVGSVGElement: 00034, Robin Berjon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |