Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.61k stars 131 forks source link

svg tag namespace xmlns="http://www.w3.org/2000/svg" should be optional #190

Open FalkWoldmann opened 2 years ago

FalkWoldmann commented 2 years ago

Hi,

when appending a svg, the library will automatically append the namespace xmlns="http://www.w3.org/2000/svg", which isn't actually mandatory and thus should be optional.

Note: The xmlns attribute is only required on the outermost svg element of SVG documents. It is unnecessary for inner svg elements or inside HTML documents. [0]

[0] https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg