3 ms·
Do you need to updated the parser though? I kind of thought SVG elements were implicitly namespaced. For example we have the two <a> tags. One HTMLElement <a> a
by runarberg 4y ago
Do you need to updated the parser though? I kind of thought SVG elements were implicitly namespaced. For example we have the two <a> tags. One HTMLElement <a> and another Element <a> with the namespace "http://www.w3.org/2000/svg http://www.w3.org/2000/svg". I don’t know of any meaningful difference between those two elements, except if you try to insert the former into an SVG DOM tree, then weird things might happen (though I haven’t tested it).
- denton-scratch 4y agoYeah, only a terminally-dumb parser could confuse an SVG <i> tag with an HTML <i> tag. A proper HTML parser should ignore anything inside tags it doesn't understand - such as the <svg> tag.