What steps will reproduce the problem?
1. Add an svg element dynamically
2. Add a namespace to the element, such as rdf, sodipodi, inkscape, dc,cc
3. Add a namespaced element (other than svgns) to the svg element
4. Add the svg element to the page
5. You get an error and it fails. In firefox, the error is:
Error while firing onload: Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIDOMDocument.importNode]
Minimal example attached.
What is the expected output? What do you see instead?
The element should be added to the DOM and should be retrievable with the
correct namespace. The provided example works in native mode.
Ultimately the problem is the SVG Web is not returning a fake Element for a
new namespaced element because it thinks the namespace is not SVG related.
It is currently only checking the namespace on SVG images already attached
to the document. It needs to include the namespaces on all svg elements.
Original issue reported on code.google.com by grick23@gmail.com on 6 Jun 2010 at 5:42
Original issue reported on code.google.com by
grick23@gmail.com
on 6 Jun 2010 at 5:42Attachments: