Hi KWL, "K. W. Landry" <[EMAIL PROTECTED]> 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 'getElementById'. > 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 before. 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
