зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1650059 - Report 1024 as byte limit for meta charset sniff. DONTBUILD NPOTB r=alchen
Fixes https://github.com/validator/validator/issues/232 Differential Revision: https://phabricator.services.mozilla.com/D81999
This commit is contained in:
Родитель
e52b75de58
Коммит
7f7f8f9d1f
|
@ -1287,7 +1287,7 @@ public class Tokenizer implements Locator {
|
|||
// [NOCPP[
|
||||
if (metaBoundaryPassed && AttributeName.CHARSET == attributeName
|
||||
&& ElementName.META == tagName) {
|
||||
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 512 bytes.");
|
||||
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 1024 bytes.");
|
||||
}
|
||||
// ]NOCPP]
|
||||
if (attributeName != null) {
|
||||
|
@ -1335,7 +1335,7 @@ public class Tokenizer implements Locator {
|
|||
// [NOCPP[
|
||||
if (metaBoundaryPassed && ElementName.META == tagName
|
||||
&& AttributeName.CHARSET == attributeName) {
|
||||
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 512 bytes.");
|
||||
err("A \u201Ccharset\u201D attribute on a \u201Cmeta\u201D element found after the first 1024 bytes.");
|
||||
}
|
||||
// ]NOCPP]
|
||||
if (attributeName != null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче