From 87bc4226d76490ddf3ad620e283ab83753a68b83 Mon Sep 17 00:00:00 2001
From: Ivan Nikulin
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.
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 +105167,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.
From 24017a7e4073c11298498d92ea4864f21a8095e3 Mon Sep 17 00:00:00 2001 From: Pierre-MarieThis 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.
+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.