ocaml-vdom icon indicating copy to clipboard operation
ocaml-vdom copied to clipboard

cannot set a class on a `svg_elt "svg"`

Open tcoopman opened this issue 3 years ago • 0 comments

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

tcoopman avatar Jul 21 '21 08:07 tcoopman