Let's say I create an SVG rect, using Tyxml's syntax:
let rect_elt = <:svg< <rect></rect> >>
How can I insert it inside the DOM using the API of js_of_ocaml ?
I want to do something like that:
let _ =
let rect_elt = <:svg< <rect></rect> >> in
let svg_elt = Dom_svg.getElementById "graph-svg" in
svg_elt##appendChild(rect_elt)
But I don't know how to do the proper type conversions.