Bug 14170 - Calls to getAttribute() fail on SVG <use> element
Summary: Calls to getAttribute() fail on SVG <use> element
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 09:21 PDT by Jean-Pierre Fiset
Modified: 2007-06-20 07:06 PDT (History)
2 users (show)

See Also:


Attachments
Test Case (2.62 KB, image/svg+xml)
2007-06-15 09:22 PDT, Jean-Pierre Fiset
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Pierre Fiset 2007-06-15 09:21:11 PDT
When accessing a <use> element via javascript, calls to getAttribute() fail.
Comment 1 Jean-Pierre Fiset 2007-06-15 09:22:15 PDT
Created attachment 15058 [details]
Test Case
Comment 2 Rob Buis 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.
Comment 3 Jean-Pierre Fiset 2007-06-20 07:06:51 PDT
Thanks so much for the help. Yes, Safari is specs compliant.