Closed
Bug 318947
Opened 20 years ago
Closed 20 years ago
createElement does not create elements with the SVG namespace, so they are not viewable
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
DUPLICATE
of bug 354318
People
(Reporter: moz-bugzilla, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051203 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051203 Firefox/1.6a1
the createElement() function of the Javascript DOM does not work with SVG documents unless you specify the SVG namespace explicitly by using the createElementNS() function.
Reproducible: Always
Steps to Reproduce:
1. go to http://www.richardcunningham.co.uk/bugs/firefox-svg-createElement.svg
Actual Results:
Some red text is shown and no green text
Expected Results:
both red and green texts.
The following page demonstrates a version with the createElementNS() function http://www.richardcunningham.co.uk/bugs/firefox-svg-createElement-NSfix.svg
![]() |
||
Comment 1•20 years ago
|
||
Marking invalid. Please see the following documents:
http://jwatt.org/svg/authoring/#namespace-aware-methods
http://developer.mozilla.org/en/docs/SVG:Namespaces_Crash_Course
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → INVALID
Comment 2•19 years ago
|
||
*** Bug 346999 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Resolution: INVALID → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•