On Thu, 21 Jul 2011 20:29:55 +0200, David Dailey <[email protected]> wrote:
... > I start out with an HTML document with a bunch of <object>s each > containing > a different SVG. You could perhaps use <a href=your.svg><img src=your.svg></a> element instead of <object>? > However, knowing which SVG document I have seems to reveal neither which > particular <object> it was housed in (from which I could interrogate its > "data" field) nor the URL containing the now selected SVG document. What element referenced/embedded the svg is possible to find out, see this example: http://xn--dahlstrm-t4a.net/svg/html/from-svg-to-parent-html-script.html From an element elm inside the svg that was embedded by reference: var embedding_elm = elm.ownerDocument.defaultView.frameElement; Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ------------------------------------ ----- 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: [email protected] [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/

