Skip to content

Svg attribute viewBox is converted to lower case #8

@jorgenhojdmo

Description

@jorgenhojdmo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions