xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Visibility of id within group element
Date Fri, 10 Nov 2006 11:58:57 GMT

"K. W. Landry" <kwlandry@gmail.com> wrote on 11/09/2006 09:47:22 PM:

> Individual elements with an "id" attribute are completely visible 
through the 
> api via *.getid, *.getAttributeNodeNS, etc....

   I'm not entirely sure what 'completely visible' means but yes you can
find elements that are attached to the document through the method

> Take those same elements and embed within a <g> element and the same 
> elements are no longer accessible via the very same "id" attribute as 

   Our implementation of getElementById only finds elements that are 
'connected' to the element that you are calling getElementById on.
This is only an important distinction if you have tree's of elements
that aren't attached to the main rendering tree (probably by having
called 'removeChild', but also potentially dynamically created but
not yet added with 'appendChild' to the main tree).

> I can't find a reference that states this is by design/spec, but is this 

> correct behavior, yes,no? 

   If the 'g' is part of the main tree than this should work (and always
has in my experience).

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message