forked from mirrors/gecko-dev
Bug 1650329 - Improve message: bad start tag in noscript in head. r=alchen
Differential Revision: https://phabricator.services.mozilla.com/D82152
This commit is contained in:
parent
58a7f256ac
commit
8932345bb3
5 changed files with 8 additions and 8 deletions
|
|
@ -103,7 +103,7 @@ errStartTagWithoutDoctype=Start tag seen without seeing a doctype first. Expecte
|
|||
errNoSelectInTableScope=No “select” in table scope.
|
||||
errStartSelectWhereEndSelectExpected=“select” start tag where end tag expected.
|
||||
errStartTagWithSelectOpen=“%1$S” start tag with “select” open.
|
||||
errBadStartTagInHead2=Bad start tag “%1$S” in “head”.
|
||||
errBadStartTagInNoscriptInHead=Bad start tag “%1$S” in “noscript” in “head”.
|
||||
errImage=Saw a start tag “image”.
|
||||
errFooSeenWhenFooOpen2=Start tag “%1$S” seen but an element of the same type was already open.
|
||||
errHeadingWhenHeadingOpen=Heading cannot be a child of another heading.
|
||||
|
|
|
|||
|
|
@ -2415,7 +2415,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
|||
errFooSeenWhenFooOpen(name);
|
||||
break starttagloop;
|
||||
default:
|
||||
errBadStartTagInHead(name);
|
||||
errBadStartTagInNoscriptInHead(name);
|
||||
pop();
|
||||
mode = IN_HEAD;
|
||||
continue;
|
||||
|
|
@ -6338,12 +6338,12 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
|||
+ "\u201D start tag with \u201Cselect\u201D open.");
|
||||
}
|
||||
|
||||
private void errBadStartTagInHead(@Local String name) throws SAXException {
|
||||
private void errBadStartTagInNoscriptInHead(@Local String name) throws SAXException {
|
||||
if (errorHandler == null) {
|
||||
return;
|
||||
}
|
||||
errNoCheck("Bad start tag in \u201C" + name
|
||||
+ "\u201D in \u201Chead\u201D.");
|
||||
+ "\u201D in \u201Cnoscript\u201D in \u201Chead\u201D.");
|
||||
}
|
||||
|
||||
private void errImage() throws SAXException {
|
||||
|
|
|
|||
|
|
@ -1654,7 +1654,7 @@ starttagloop:
|
|||
NS_HTML5_BREAK(starttagloop);
|
||||
}
|
||||
default: {
|
||||
errBadStartTagInHead(name);
|
||||
errBadStartTagInNoscriptInHead(name);
|
||||
pop();
|
||||
mode = IN_HEAD;
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -1573,9 +1573,9 @@ void nsHtml5TreeBuilder::errStartTagWithSelectOpen(nsAtom* aName) {
|
|||
}
|
||||
}
|
||||
|
||||
void nsHtml5TreeBuilder::errBadStartTagInHead(nsAtom* aName) {
|
||||
void nsHtml5TreeBuilder::errBadStartTagInNoscriptInHead(nsAtom* aName) {
|
||||
if (MOZ_UNLIKELY(mViewSource)) {
|
||||
mViewSource->AddErrorToCurrentRun("errBadStartTagInHead2", aName);
|
||||
mViewSource->AddErrorToCurrentRun("errBadStartTagInNoscriptInHead", aName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ void errStartSelectWhereEndSelectExpected();
|
|||
|
||||
void errStartTagWithSelectOpen(nsAtom* aName);
|
||||
|
||||
void errBadStartTagInHead(nsAtom* aName);
|
||||
void errBadStartTagInNoscriptInHead(nsAtom* aName);
|
||||
|
||||
void errImage();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue