Skip to content

Commit 9ba3b28

Browse files
committed
Increase encoding pre-scan length to 1024, per spec from 2011(!)
51babfe760a1dbe28c4521b2070e692ac872550a was the spec change.
1 parent 04ff4c1 commit 9ba3b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/inputstream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def __init__(self, source, encoding=None, parseMeta=True, chardet=True):
421421
# Encoding Information
422422
# Number of bytes to use when looking for a meta element with
423423
# encoding information
424-
self.numBytesMeta = 512
424+
self.numBytesMeta = 1024
425425
# Number of bytes to use when using detecting encoding using chardet
426426
self.numBytesChardet = 100
427427
# Encoding to use if no other information can be found

0 commit comments

Comments
 (0)