Skip to content

Export DOM classes#238

Open
atkinchris wants to merge 1 commit intojindw:masterfrom
atkinchris:master
Open

Export DOM classes#238
atkinchris wants to merge 1 commit intojindw:masterfrom
atkinchris:master

Conversation

@atkinchris
Copy link

This exports the classes for Document, DocumentFragment, Element, NodeList and LiveNodeList, to allow them to be extended and modified by clients implementing this library.

Partly addresses #235.

This exports the classes for Document, DocumentFragment, Element, NodeList and LiveNodeList, to allow them to be extended and modified by clients implementing this library.
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, I think LiveNodeList should not be exported since it does not appear to be exposed by the DOM standard (https://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html).

Nit: if you keep the exports splitted into three groups then maybe add a short comment between each group. Or you can also merge all them together into a single alphabetical list without line breaks.

@ghost
Copy link

ghost commented Oct 16, 2018

In fact, dom-parser.js also needs to be modified so as to re-export the DOM classes, since it is this file which is currently the entry point of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant