seliopou / ocaml-d3

OCaml bindings for D3.js
Other
74 stars 6 forks source link

`run` does the wrong thing inside an Html document #11

Closed Drup closed 9 years ago

Drup commented 9 years ago

By default (without a node argument) It calls to document, which is wrong (and give a runtime error). It should try to call to "body".

I'm not sure what should be done in order to stay compatible with svg document.

seliopou commented 9 years ago

It should be document.documentElement.

On Sat, Oct 24, 2015 at 3:32 PM, Gabriel Radanne notifications@github.com wrote:

By default (without a node argument) It calls to document, which is wrong (and give a runtime error). It should try to call to "body".

I'm not sure what should be done in order to stay compatible with svg document.

— Reply to this email directly or view it on GitHub https://github.com/seliopou/ocaml-d3/issues/11.