Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ba3b28

Browse files
committed
Increase encoding pre-scan length to 1024, per spec from 2011(!)
51babfe760a1dbe28c4521b2070e692ac872550a was the spec change.
1 parent04ff4c1 commit9ba3b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp