= function(document, output) {</span>
<span class="hl str">      var docTypeName, doctype, htmlEls, publicId, systemId;</span>
<span class="hl str">      if (document.doctype != null) {</span>
<span class="hl str">        doctype = document.doctype;</span>
<span class="hl str">        docTypeName = void 0;</span>
<span class="hl str">        publicId = doctype.publicId;</span>
<span class="hl str">        systemId = doctype.systemId;</span>
<span class="hl str">        if ((publicId != null) &amp;&amp; (pub