function createDocument(html) {
            var document = parse5.parse(html, PARSE5_OPTS);
            defineProperties(document, DocumentExtensions); // Extend Element.prototype with DOM manipulation methods.
            var scratch = document.createElement('div'); // Get a reference to the base Node class - used by createTextNode()
            document.$$Node = scratch.constructor;
            var elementProto = Object.getPrototypeOf(scratch);
            defineProperties(elementProto, ElementExtensions);
            elementProto.ownerDocument = document;
            return document;
        }
/**
         * Parse HTML into a mutable, serializable DOM Document.
         * The DOM implementation is an htmlparser2 DOM enhanced with basic DOM mutation methods.
         * @param {String} html   HTML to parse into a Document instance
         */
Parse HTML into a mutable, serializable DOM Document.
The DOM implementation is an htmlparser2 DOM enhanced with basic DOM mutation methods.
@param {String} html   HTML to parse into a Document instance
Parse HTML into a mutable serializable DOM Document . The DOM implementation is an htmlparser2 DOM enhanced with basic DOM mutation methods . @param { String } html HTML to parse into a Document instance
function createDocument(html) {
            var document = parse5.parse(html, PARSE5_OPTS);
            defineProperties(document, DocumentExtensions); 
            var scratch = document.createElement('div'); 
            document.$$Node = scratch.constructor;
            var elementProto = Object.getPrototypeOf(scratch);
            defineProperties(elementProto, ElementExtensions);
            elementProto.ownerDocument = document;
            return document;
        }
function createDocument ( html ) { var document = parse5 . parse ( html , PARSE5_OPTS ) ; defineProperties ( document , DocumentExtensions ) ; var scratch = document . createElement ( 'div' ) ; document . $$Node = scratch . constructor ; var elementProto = Object . getPrototypeOf ( scratch ) ; defineProperties ( elementProto , ElementExtensions ) ; elementProto . ownerDocument = document ; return document ; }
Parse HTML into a mutable, serializable DOM Document.
Parse HTML into a mutable serializable DOM Document .
// Extend Element.prototype with DOM manipulation methods. // Get a reference to the base Node class - used by createTextNode()