.append() removes XML Namespaces from tag-names
jerng opened this issue · comments
Jerng commented
Using Version 5.
I tried to do a .append ( 'html:div
) and the output was simply <div />
.
Is this intentional?
Jerng commented
Sorry, I just found this, which seems to indicate that this intentional.
https://github.com/d3/d3-selection#namespaces
The weird thing is d3 works as described, but if I inspect the DOM, the elements and attributes created under a namespace don't seem to have the relevant XMLNS attributes/prefixes, yet they render as if they do!