//Types of elements found in the DOMmodule.exports={Text:"text",//TextDirective:"directive",//<? ... ?>Comment:"comment",//<!-- ... -->Script:"script",//<script> tagsStyle:"style",//<style> tagsTag:"tag",//Any tagCDATA:"cdata",//<![CDATA[ ... ]]>Doctype:"doctype",isTag:function(elem){returnelem.type==="tag"||elem.type==="script"||elem.type==="style";}};