LexiFi / ocaml-vdom

Elm architecture and (V)DOM for OCaml
MIT License
197 stars 13 forks source link

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

Open tcoopman opened 3 years ago

tcoopman commented 3 years ago

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