Skip to content

Commit 291b51e

Browse files
zcorpansideshowbarker
authored andcommitted
Improve message: bad start tag in noscript in head
1 parent f475aa6 commit 291b51e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nu/validator/htmlparser/impl/TreeBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ public final void startTag(ElementName elementName,
25852585
errFooSeenWhenFooOpen(name);
25862586
break starttagloop;
25872587
default:
2588-
errBadStartTagInHead(name);
2588+
errBadStartTagInNoscriptInHead(name);
25892589
pop();
25902590
mode = IN_HEAD;
25912591
continue;
@@ -6585,12 +6585,12 @@ private void errStartTagWithSelectOpen(@Local String name)
65856585
+ "\u201D start tag with \u201Cselect\u201D open.");
65866586
}
65876587

6588-
private void errBadStartTagInHead(@Local String name) throws SAXException {
6588+
private void errBadStartTagInNoscriptInHead(@Local String name) throws SAXException {
65896589
if (errorHandler == null) {
65906590
return;
65916591
}
65926592
errNoCheck("Bad start tag in \u201C" + name
6593-
+ "\u201D in \u201Chead\u201D.");
6593+
+ "\u201D in \u201Cnoscript\u201D in \u201Chead\u201D.");
65946594
}
65956595

65966596
private void errImage() throws SAXException {

0 commit comments

Comments
 (0)