зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1650105 - Emit error (not warning) for HTML4/XHTML1 doctype. DONTBUILD NPOTB r=alchen
Since 2594493 HTML4/XHTML1 doctypes have caused the warning `Obsolete doctype. Expected <!DOCTYPE html>`. This change makes that message an error rather than just a warning — bringing the parser into conformance with whatwg/html@31c20af (whatwg/html#2049). Differential Revision: https://phabricator.services.mozilla.com/D82028
This commit is contained in:
Родитель
c53017c5a8
Коммит
23655261b6
|
@ -768,7 +768,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
|||
systemIdentifier))
|
||||
|
||||
) {
|
||||
warn("Obsolete doctype. Expected \u201C<!DOCTYPE html>\u201D.");
|
||||
err("Obsolete doctype. Expected \u201C<!DOCTYPE html>\u201D.");
|
||||
} else if (!((systemIdentifier == null || Portability.literalEqualsString(
|
||||
"about:legacy-compat", systemIdentifier)) && publicIdentifier == null)) {
|
||||
err("Legacy doctype. Expected \u201C<!DOCTYPE html>\u201D.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче