Skip to content

SVG attributes aren't camel-cased #4

@andyfry01

Description

@andyfry01

Hello,

Firstly, fantastic little web app! I use it multiple times a week.

One thing I have trouble with is SVGs. Most of the attributes don't come out with the right camel casing, viewBox for example. If you pass this as your HTML:

<svg height="100" width="100" viewBox="-50 -50 100 100">
  <circle cx="0" cy="0" r="20" fill="blue"></circle>
</svg> 

You get this back, which won't be rendered correctly.

;; viewbox should be viewBox
[:svg {:height "50", :width "50", :viewbox "-50 -50 100 100"}
 [:circle {:cx "0", :cy "0", :r "20", :fill "blue"}]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions