Skip to content

Commit 2f6f559

Browse files
zcorpanhsivonen
authored andcommitted
Improve message: bad start tag in noscript in head
1 parent 8ff29a4 commit 2f6f559

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
@@ -2415,7 +2415,7 @@ public final void startTag(ElementName elementName,
24152415
errFooSeenWhenFooOpen(name);
24162416
break starttagloop;
24172417
default:
2418-
errBadStartTagInHead(name);
2418+
errBadStartTagInNoscriptInHead(name);
24192419
pop();
24202420
mode = IN_HEAD;
24212421
continue;
@@ -6338,12 +6338,12 @@ private void errStartTagWithSelectOpen(@Local String name)
63386338
+ "\u201D start tag with \u201Cselect\u201D open.");
63396339
}
63406340

6341-
private void errBadStartTagInHead(@Local String name) throws SAXException {
6341+
private void errBadStartTagInNoscriptInHead(@Local String name) throws SAXException {
63426342
if (errorHandler == null) {
63436343
return;
63446344
}
63456345
errNoCheck("Bad start tag in \u201C" + name
6346-
+ "\u201D in \u201Chead\u201D.");
6346+
+ "\u201D in \u201Cnoscript\u201D in \u201Chead\u201D.");
63476347
}
63486348

63496349
private void errImage() throws SAXException {

0 commit comments

Comments
 (0)