diff --git a/source b/source index 7ba07983431..55d343a4c51 100644 --- a/source +++ b/source @@ -100157,6 +100157,15 @@ dictionary StorageEventInit : EventInit { Such code points are parsed as-is and usually, where parsing rules don't apply any additional restrictions, make their way into the DOM.
+This error occurs if the parser encounters the DOCTYPE correctly placed as a document preamble and other than
+ <!DOCTYPE html>
or <!DOCTYPE html SYSTEM
+ "about:legacy-compat">
. For some non-conforming
+ DOCTYPEs the parser sets the Document
to quirks mode or
+ limited-quirks mode.
This error occurs if the parser encounters an incorrectly placed DOCTYPE. In this case the parser ignores the DOCTYPE token.
+ +This error occurs if the parser encounters an unexpected end tag. In this case the parser + ignores the end tag.
+b'ar'
".
+ This error occurs if the parser encounters any content other than comments or ASCII whitespace before DOCTYPE at the beginning of the document, i.e. DOCTYPE is not
+ a document preamble. In this case the parser sets the Document
to quirks
+ mode.
If the DOCTYPE token's name is not a case-sensitive match for the string "html
", or the token's public identifier is not missing, or the token's system
identifier is neither missing nor a case-sensitive match for the string
- "about:legacy-compat
", then there is a parse error.
about:legacy-compat
", then this is a non-conforming-doctype parse
+ error.
Append a DocumentType
node to the Document
node, with the name
attribute set to the name given in the DOCTYPE token, or the empty string
@@ -105147,8 +105180,9 @@ document.body.appendChild(text);
If the document is not an iframe
srcdoc
document, then this is a parse
- error; set the Document
to quirks mode.
Document
to quirks mode.
In any case, switch the insertion mode to "before html", then reprocess the token.
@@ -105168,7 +105202,8 @@ document.body.appendChild(text);Parse error. Ignore the token.
+This is an unexpected-doctype + parse error. Ignore the token.
Parse error. Ignore the token.
+This is an unexpected-end-tag + parse error. Ignore the token.