xmldom
xmldom copied to clipboard
"Exports" Node & Element objects from "doc.js"
If "doc.js" exports these two objects, it would enable libs that depend on xmldom to extend these objects with useful functionalities that are used internally by the libs.
Thanks in advance
Sure. It allows for people doing things like adding innerHTML
if they want it. Good suggestion.
See #62.
Master branch is not updated...am I missing something?
I would also like to vote for exporting Node
, Element
etc. I don't see why this shouldn't be considered part of the DOM API. It would make code like if( node.nodeType == Node.ELEMENT_NODE )
and if( node instanceof Element)
possible.
Is anything going to happen with this?
I would like to extend XML DOM functionality with SVG DOM functionality. The simplest way would be to subclass relevant xmldom classes.
I would have thought most of the DOM specified classes could be exposed?