Closed
Bug 509892
Opened 15 years ago
Closed 15 years ago
Some elements specified under the SVG namespace don't inherit nsIDOMSVGElement
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: pvnick, Unassigned)
Details
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]
Comment 1•15 years ago
|
||
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
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•