RESOLVED INVALID 14170
Calls to getAttribute() fail on SVG <use> element
https://bugs.webkit.org/show_bug.cgi?id=14170
Summary Calls to getAttribute() fail on SVG <use> element
Jean-Pierre Fiset
Reported 2007-06-15 09:21:11 PDT
When accessing a <use> element via javascript, calls to getAttribute() fail.
Attachments
Test Case (2.62 KB, image/svg+xml)
2007-06-15 09:22 PDT, Jean-Pierre Fiset
no flags
Jean-Pierre Fiset
Comment 1 2007-06-15 09:22:15 PDT
Created attachment 15058 [details] Test Case
Rob Buis
Comment 2 2007-06-18 08:15:14 PDT
Hi, (In reply to comment #0) > When accessing a <use> element via javascript, calls to getAttribute() fail. After checking with Opera, which acts the same as Safari 3, I am not sure whether the bug report is valid. The spec seems to indicate a SVGElementInstance needs to be reported: "If event attributes are assigned to referenced elements, then the actual target for the event will be the SVGElementInstance object within the "instance tree" corresponding to the given referenced element." That is what Safari 3 does. You could use correspondingUseElement to query the <use>. I am waiting with closing this until after double checking with WildFox. Cheers, Rob.
Jean-Pierre Fiset
Comment 3 2007-06-20 07:06:51 PDT
Thanks so much for the help. Yes, Safari is specs compliant.
Note You need to log in before you can comment on or make changes to this bug.