Skip to content

svg tag viewBox becomes viewbox #61

Open
@oceangroove

Description

In HiccupRepresentable and HickoryRepresentable if the node type is Attribute then lower-case-keyword is applied.
However, from

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute

some svg tags have uppercase characters like viewBox (there are others). This causes a warning in both Chrome and Firefox under re-frame (originating from react) but is not in itself an error in either browser. ie, an svg image with viewbox does not cause a warning.

Example warning:
react-dom.inc.js:82 Warning: Invalid DOM property viewbox. Did you mean viewBox?

re-frame 1.2.0 cljs 1.10.516

Metadata

Assignees

No one assigned

    Labels

    category: parsingCorrectness and Edge Cases. Hail the DOMtype: bugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions