Closed Bug 346999 Opened 19 years ago Closed 19 years ago

SVG element added via Javascript to the SVG DOM is not rendered

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 318947

People

(Reporter: d.m.hoffer, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5 When you add a SVG element using JS to an existing SVG DOM, the new element is added to the DOM (DOM inspector), but the element is not rendered. The DOM Inspector cannot provide a Namespace URI for the new element but for each old element indicating that the rendering engine does not know what to do with element. In the given example the rectangle schould be replaced with a circle by clicking on the text. This works fine in Opera and IE+Adobe SVG viewer. Reproducible: Always Steps to Reproduce: 1. Add a SVG element to a existing SVG DOM using JS 2. 3. Actual Results: element is added to DOM but not displayed in the browser Expected Results: element should be displayed
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
It works if you use createElementNS instead of createElement. *** This bug has been marked as a duplicate of 318947 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.