Skip to content

Expose DOM Level 2 Elements #40

Description

@esbullington

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp-wantedExternal contributions welcomespec:DOM-Level-2https://www.w3.org/TR/DOM-Level-2-Core/

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions