@@ -100157,6 +100157,15 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
100157100157 Such <span data-x="code point">code points</span> are parsed as-is and usually, where parsing
100158100158 rules don't apply any additional restrictions, make their way into the DOM.</p>
100159100159
100160+ <tr>
100161+ <td><dfn data-x="parse-error-non-conforming-doctype">non-conforming-doctype</dfn>
100162+ <td><p>This error occurs if the parser encounters the <span
100163+ data-x="syntax-doctype">DOCTYPE</span> correctly placed as a document preamble and other than
100164+ <code data-x=""><!DOCTYPE html></code> or <code data-x=""><!DOCTYPE html SYSTEM
100165+ "about:legacy-compat"></code>. For <a href="#quirks-mode-doctypes">some non-conforming
100166+ DOCTYPEs</a> the parser sets the <code>Document</code> to <span>quirks mode</span> or
100167+ <span>limited-quirks mode</span>.</p>
100168+
100160100169 <tr>
100161100170 <td><dfn data-x="parse-error-non-void-html-element-start-tag-with-trailing-solidus">non-void-html-element-start-tag-with-trailing-solidus</dfn>
100162100171 <td>
@@ -100262,6 +100271,15 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
100262100271 data-x="">foo</code>" attribute to "<code data-x="">b'ar'</code>".</p>
100263100272 </div>
100264100273
100274+ <tr>
100275+ <td><dfn data-x="parse-error-missing-doctype">missing-doctype</dfn>
100276+ <td>
100277+ <p>This error occurs if the parser encounters any content other than <span
100278+ data-x="syntax-comments">comments</span> or <span>ASCII whitespace</span> before <span
100279+ data-x="syntax-doctype">DOCTYPE</span> at the beginning of the document, i.e. DOCTYPE is not
100280+ a document preamble. In this case the parser sets the <code>Document</code> to <span>quirks
100281+ mode</span>.</p>
100282+
100265100283 <tr>
100266100284 <td><dfn data-x="parse-error-unexpected-equals-sign-before-attribute-name">unexpected-equals-sign-before-attribute-name</dfn>
100267100285 <td>
@@ -105037,7 +105055,9 @@ document.body.appendChild(text);
105037105055 <p>If the DOCTYPE token's name is not a <span>case-sensitive</span> match for the string "<code
105038105056 data-x="">html</code>", or the token's public identifier is not missing, or the token's system
105039105057 identifier is neither missing nor a <span>case-sensitive</span> match for the string
105040- "<code>about:legacy-compat</code>", then there is a <span>parse error</span>.</p>
105058+ "<code>about:legacy-compat</code>", then this is a <span
105059+ data-x="parse-error-non-conforming-doctype">non-conforming-doctype</span> <span>parse
105060+ error</span>.</p>
105041105061
105042105062 <p>Append a <code>DocumentType</code> node to the <code>Document</code> node, with the <code
105043105063 data-x="">name</code> attribute set to the name given in the DOCTYPE token, or the empty string
@@ -105147,8 +105167,9 @@ document.body.appendChild(text);
105147105167 <dd>
105148105168
105149105169 <p>If the document is <em>not</em> <span>an <code>iframe</code> <code
105150- data-x="attr-iframe-srcdoc">srcdoc</code> document</span>, then this is a <span>parse
105151- error</span>; set the <code>Document</code> to <span>quirks mode</span>.</p>
105170+ data-x="attr-iframe-srcdoc">srcdoc</code> document</span>, then this is a <span
105171+ data-x="parse-error-missing-doctype">missing-doctype</span> <span>parse error</span>; set the
105172+ <code>Document</code> to <span>quirks mode</span>.</p>
105152105173
105153105174 <p>In any case, switch the <span>insertion mode</span> to "<span data-x="insertion mode: before
105154105175 html">before html</span>", then reprocess the token.</p>
0 commit comments