Some elements specified under the SVG namespace don't inherit nsIDOMSVGElement

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
9 years ago
9 years ago

People

(Reporter: Paul Nickerson, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
I don't know if this is a bug, but it's inconsistent with how HTML and XUL elements behave. SVG elements with the following node names dont inherit nsIDOMSVGElement:
ALTGLYPH, ALTGLYPHDEF, ALTGLYPHITEM, ANIMATE, ANIMATECOLOR, ANIMATEMOTION, ANIMATETRANSFORM, COLOR-PROFILE, CURSOR, DEFINITION-SRC, FONT, FONT-FACE, FONT-FACE-FORMAT, FONT-FACE-NAME, FONT-FACE-SRC, FONT-FACE-URI, GLYPH, GLYPHREF, HKERN, MISSING-GLYPH, MPATH, SET, TREF, VIEW, VKERN

<script>
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
document.documentElement.appendChild(svg);
var ce = document.createElementNS("http://www.w3.org/2000/svg", "any of the listed node names");
svg.appendChild(ce);
ce.QueryInterface(Components.interfaces["nsIDOMSVGElement"]);
</script>

Throws the following error:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  location: "JS frame :: file:///C:/mozilla/work/svgtest.htm :: <TOP_LEVEL> :: line 6"  data: no]
Support for these elements hasn't been implemented yet. When it is they will get the appropriate interfaces.

I'm going to mark this invalid as there are existing bugs on implementing the individual features.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.