kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

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

Open FalkWoldmann opened this issue 3 years ago • 0 comments

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

FalkWoldmann avatar Apr 20 '22 13:04 FalkWoldmann