--- In [email protected], Olaf Schnabel <oschna...@...>
wrote:
>
> Hi developers
> 
> I want to implement foreign code in SVG. I tried it both as foreign 
> object and as custom element as it is mentioned in the SVG spec. By 
> clicking on the black rectangle, I want to get access to the foreign 
> element with the JS function getElementById().

You can't get the id of arbitrary XML using getElementById only things
which are specified to have an attribute of type id and where the
browser has implemented that specification. See the notes section of
https://developer.mozilla.org/En/DOM:document.getElementById 

You could write your own version of getElementById to do what you want.

Best regards

Robert


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to