Glad you all have forked and are maintaining xmldom, thank you!
There were several issues in the old unmaintained repo dealing with exposing DOM Level 2 object interfaces, such as Node, Element, NodeLike. Right now, those classes are private.
There are multiple library that deal with the browser DOMParser that make use of these for things like instanceof checks. As one example, I'm using bs-xml, which wraps DOMParser for Bucklescript/ReasonML, and which has to check if an object is a Node or Element.
Would you be open to a very simple PR that exposes those classes? Specifically, the ones listed as fundamental interfaces in the Level 2 DOM Core spec?
DOMException
ExceptionCode
DOMImplementation
DocumentFragment
Document
Node
NodeList
NamedNodeMap
CharacterData
Attr
Element
Text
Glad you all have forked and are maintaining
xmldom, thank you!There were several issues in the old unmaintained repo dealing with exposing DOM Level 2 object interfaces, such as
Node,Element,NodeLike. Right now, those classes are private.There are multiple library that deal with the browser
DOMParserthat make use of these for things likeinstanceofchecks. As one example, I'm usingbs-xml, which wrapsDOMParserfor Bucklescript/ReasonML, and which has to check if an object is aNodeorElement.Would you be open to a very simple PR that exposes those classes? Specifically, the ones listed as fundamental interfaces in the Level 2 DOM Core spec?