On Mon, 01 Oct 2007 13:03:18 +0200, richard_smith_ons <[EMAIL PROTECTED]> wrote:
> > http://bugs.webkit.org/show_bug.cgi?id=14167 > > Due to the above I get "evt.target.getAttributeNS not an object" when > trying to process the events on a USE element (Safari 3.0.3 for > Windows). The conclusion seems to be it's not a bug (!) I don't think it's a bug either, if you get an SVGElementInstance object back then clearly it doesn't have an ownerDocument. You get the "innermost" (in lack of a better word) element that was under the mouse cursor, which in the supplied testcase is a rect, as the target of the event. Now, if you want the _current_ target instead, then just use evt.currentTarget instead, this will be the use element, which does have an ownerDocument. Opera shows the same behaviour as Safari on this testcase. > Is there a recommended workaround? Well, you have all of the methods and properties available on the SVGElementInstance interface[1] at your disposal. And you could use evt.currentTarget if that's what you want. Cheers /Erik [1] http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGElementInstance -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ----- 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/

