From 41c0cf3d47dba3d1b2139da56075952f8ac13c6c Mon Sep 17 00:00:00 2001 From: Chris Atkin Date: Sat, 2 Jun 2018 19:31:15 +0100 Subject: [PATCH] Export DOM classes This exports the classes for Document, DocumentFragment, Element, NodeList and LiveNodeList, to allow them to be extended and modified by clients implementing this library. --- dom.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dom.js b/dom.js index b13b371..cfea5ed 100644 --- a/dom.js +++ b/dom.js @@ -1237,4 +1237,20 @@ try{ //if(typeof require == 'function'){ exports.DOMImplementation = DOMImplementation; exports.XMLSerializer = XMLSerializer; + + exports.Attr = Attr; + exports.CharacterData = CharacterData; + exports.Comment = Comment; + exports.Document = Document; + exports.DocumentFragment = DocumentFragment; + exports.DOMException = DOMException; + exports.DOMImplementation = DOMImplementation; + exports.Element = Element; + exports.NamedNodeMap = NamedNodeMap; + exports.Node = Node; + exports.NodeList = NodeList; + exports.Text = Text; + + exports.ExceptionCode = ExceptionCode; + exports.LiveNodeList = LiveNodeList; //}