ocaml-vdom
ocaml-vdom copied to clipboard
cannot set a class on a `svg_elt "svg"`
when setting class_
on a svg_elt "svg"
I get the following error:
Uncaught TypeError: setting getter-only property "className"
, same thing happens with viewBox
It seems that for svg, you need to set this differently: https://stackoverflow.com/questions/37943006/unable-to-change-class-name-of-svg-element