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

Re: getElementById method on SVGSVGElement

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 03 Feb 2005 12:48:31 -0600
Message-ID: <420271FF.6040900@mit.edu>
To: Robin Berjon <robin.berjon@expway.fr>
CC: www-svg@w3.org

Robin Berjon wrote:
> I *think* that the original intent was to deal with the case where 
> different implementations may be dealing with different parts of the 
> same tree (eg a plugin handling a subtree embedded in another document). 
> This would have allowed that implementation to know that the id 
> attribute on an element in the SVG namespace is an ID (as the DOM 
> allows). In retrospect I'm unsure how useful this turned out to be.

At this point, from my point of view as an implementor, it just seems like an 
extra burden to implement this, with little basis for it existing.  I can't even 
forward the call to Document.getElementById, since the two methods have 
different semantics....  The net effect is likely to be that 
Document.getElementById will be significantly faster in Mozilla than 
Element.getElementById (since for the former it makes a lot more sense to keep a 
global id-to-node hashtable).

Would it make sense to deprecate this method in future SVG versions?

> It's the former AFAIK, and indeed should be clarified with an erratum.

If I may ask, are the various errata for SVG 1.1 that I have seen brought up on 
this list being tracked somewhere?  Is there a timeframe for publishing these 
errata?

-Boris
Received on Thursday, 3 February 2005 18:59:18 UTC

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