Bug 1650066 preparation - Add errListUnclosedStartTags for HTML tree builder error reporting. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D122597
This commit is contained in:
Henri Sivonen 2021-08-16 05:16:58 +00:00
Родитель 54015a7af2
Коммит de1b71fe15
3 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -129,3 +129,4 @@ errNoCheckUnclosedElementsOnStack=Unclosed elements on stack.
errEndTagDidNotMatchCurrentOpenElement=End tag “%1$S” did not match the name of the current open element (“%2$S”).
errEndTagViolatesNestingRules=End tag “%1$S” violates nesting rules.
errEndWithUnclosedElements=End tag for “%1$S” seen, but there were unclosed elements.
errListUnclosedStartTags=Unclosed element or elements.

Просмотреть файл

@ -1745,3 +1745,9 @@ void nsHtml5TreeBuilder::errEndWithUnclosedElements(nsAtom* aName) {
mViewSource->AddErrorToCurrentRun("errEndWithUnclosedElements", aName);
}
}
void nsHtml5TreeBuilder::errListUnclosedStartTags(int32_t aIgnored) {
if (MOZ_UNLIKELY(mViewSource)) {
mViewSource->AddErrorToCurrentRun("errListUnclosedStartTags");
}
}

Просмотреть файл

@ -233,6 +233,8 @@ void errEndTagViolatesNestingRules(nsAtom* aName);
void errEndWithUnclosedElements(nsAtom* aName);
void errListUnclosedStartTags(int32_t aIgnored);
void MarkAsBroken(nsresult aRv);
/**