xmldom icon indicating copy to clipboard operation
xmldom copied to clipboard

"Exports" Node & Element objects from "doc.js"

Open hbi99 opened this issue 11 years ago • 5 comments

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

hbi99 avatar Jan 06 '14 14:01 hbi99

Sure. It allows for people doing things like adding innerHTML if they want it. Good suggestion.

bigeasy avatar Jan 06 '14 19:01 bigeasy

See #62.

bigeasy avatar Jan 06 '14 19:01 bigeasy

Master branch is not updated...am I missing something?

hbi99 avatar Jan 07 '14 04:01 hbi99

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.

micschro avatar Jan 07 '15 16:01 micschro

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?

harmic avatar Jun 26 '17 00:06 harmic