In js_of_ocaml, is it possible to get the child nodes of Dom_html.element
?
I know that the class inherits Dom.node
, and thus has the childNodes
method. But since it is a method from Dom.node
, it returns values of Dom.node
types. And I need those nodes to still be Dom_html.element
, or else most methods will not be available.
Since downcasting is not possible in OCaml, I do not find any possible solution for this issue. Am I missing something or is this really impossible?