elm-html-parser icon indicating copy to clipboard operation
elm-html-parser copied to clipboard

Svg attribute viewBox is converted to lower case

Open jorgenhojdmo opened this issue 8 years ago • 0 comments

When parsing the following svg

svgTestRect = """
<svg width="100%" height="100%" viewBox="0.00 0.00 50.00 50.00" >
<rect x="5px" y="5px" width="45px" height="45px" fill="red"></rect>
</svg>"""

with

Html.div [] (toVirtualDom <| HtmlParser.parse svgTestRect) the generated svg is

<svg width="100%" height="100%" viewbox="0.00 0.00 50.00 50.00" >
<rect x="5px" y="5px" width="45px" height="45px" fill="red"></rect>
</svg>

which is not rendered correct.

jorgenhojdmo avatar Aug 03 '17 09:08 jorgenhojdmo