Skip to content

SVG elements and attributes are being lowercased #365

Closed
@mojavelinux

Description

@mojavelinux

SVG elements such as "clipPath" and attributes such as "viewBox" (when included in the document via the <svg> element) are being lowercased. This could cause SVGs to stop working (though in my tests it doesn't seem to break inside the browser). At the very least, it's annoying because it causes unnecessary diffs.

Input:

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 9"></svg>

Output

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 16 9"></svg>

There are many such elements and attributes, as you can see here: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute

Is there any way we could disable the automatic lowercasing within SVG regions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions