Skip to content

document

Compare
Choose a tag to compare
@byteface byteface released this 08 Aug 10:27
· 302 commits to master since this release

document is now a global to the dom module and updates whenever you create a html tag. it houses an empty html tag by default so that static methods are availabe.

from domonic.dom import document
print(document)

d3 selection class is started. but all d3 is undocumented so not officially supported yet. however check out the unit tests if you're interested in using selection and to see how the port is going.

They're not yet on d3 as a modules.. you have to import their methods directly. (see unit tests)

It doesn't appear to break anything... yet. but will mean you have to manually switch the reference if you have multiple documents (as extra libs d3 will rely on it.) The alternative is the dQuery method of having an init call... which may go away in favour of the global.