Closed Bug 323589 Opened 19 years ago Closed 19 years ago

Trying to access .style of <svg:marker> throws "Component does not have requested interface" (NS_NOINTERFACE)

Categories

(Core :: SVG, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: longsonr)

References

Details

Attachments

(1 file)

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060113 Firefox/1.6a1 Steps to reproduce: 1. Load data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><marker/></svg> 2. javascript:alert(document.getElementsByTagName("marker")[0].style) Result: Error: uncaught exception: [Exception... "Component does not have requested interface [nsIDOMSVGStylable.style]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: javascript:alert(document.getElementsByTagName("marker")[0].style) :: <TOP_LEVEL> :: line 1" data: no] Expected: undefined or a normal style object. This bug is similar to bug 313078, which was fixed. That bug was for <svg:script> while this bug is for <svg:marker>.
Is there a reason that nsSVGMarkerElement does 123 NS_INTERFACE_MAP_END_INHERITING(nsSVGElement) Instead of its actual superclass (which would be nsSVGMarkerElementBase and which would allow it to QI to nsIDOMSVGStylable, as well as nsIDOMSVGLocatable and nsIDOMSVGTransformable?
Flags: blocking1.9a1?
No reason, just a mistake.
Status: NEW → ASSIGNED
Assignee: general → longsonr
Status: ASSIGNED → NEW
Attachment #209344 - Flags: review?(jwatt)
Comment on attachment 209344 [details] [diff] [review] correct interface map as per comment 1 r=me
Attachment #209344 - Flags: review?(jwatt) → review+
Attachment #209344 - Flags: superreview?(tor)
Attachment #209344 - Flags: superreview?(tor) → superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: blocking1.9a1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: