Skip to content

Commit 7528857

Browse files
Report 1024 as byte limit for meta charset sniff
Fixes validator/validator#232
1 parent ef15099 commit 7528857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ private void addAttributeWithoutValue() throws SAXException {
12891289
// [NOCPP[
12901290
if (metaBoundaryPassed && AttributeName.CHARSET == attributeName
12911291
&& ElementName.META == tagName) {
1292-
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 512 bytes.");
1292+
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 1024 bytes.");
12931293
}
12941294
// ]NOCPP]
12951295
if (attributeName != null) {
@@ -1337,7 +1337,7 @@ private void addAttributeWithValue() throws SAXException {
13371337
// [NOCPP[
13381338
if (metaBoundaryPassed && ElementName.META == tagName
13391339
&& AttributeName.CHARSET == attributeName) {
1340-
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 512 bytes.");
1340+
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 1024 bytes.");
13411341
}
13421342
// ]NOCPP]
13431343
if (attributeName != null) {

0 commit comments

Comments
 (0)