From 1848152646b01e7e74198beb67b3912808c96de4 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Thu, 2 Jul 2020 15:32:11 +0300 Subject: [PATCH] Bug 1319410 - Make consecutive hyphens in comments a non-error Also allow `` at (IE conditional) comment end See https://github.com/whatwg/html/pull/1356 See https://github.com/whatwg/html/pull/1456 Differential Revision: https://phabricator.services.mozilla.com/D82000 --- .../en-US/chrome/layout/htmlparser.properties | 2 +- parser/html/javasrc/Tokenizer.java | 199 ++++++++++++- parser/html/nsHtml5Tokenizer.cpp | 267 +++++++++++++++++- parser/html/nsHtml5Tokenizer.h | 16 +- parser/html/nsHtml5TokenizerCppSupplement.h | 4 +- parser/html/nsHtml5TokenizerHSupplement.h | 2 +- 6 files changed, 462 insertions(+), 28 deletions(-) diff --git a/dom/locales/en-US/chrome/layout/htmlparser.properties b/dom/locales/en-US/chrome/layout/htmlparser.properties index 36636b0c942b3..655177a7b4d2c 100644 --- a/dom/locales/en-US/chrome/layout/htmlparser.properties +++ b/dom/locales/en-US/chrome/layout/htmlparser.properties @@ -76,7 +76,7 @@ errDuplicateAttribute=Duplicate attribute. errEofInSystemId=End of file inside system identifier. errExpectedSystemId=Expected a system identifier but the doctype ended. errMissingSpaceBeforeDoctypeName=Missing space before doctype name. -errHyphenHyphenBang=“--!” found in comment. +errNestedComment=Saw “