mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
committed by
Alexander Kalenik
parent
4a5863bcdb
commit
9dbeecb73d
Notes:
github-actions[bot]
2025-04-10 09:18:08 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/9dbeecb73db Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4296
@@ -384,7 +384,7 @@ ByteString run_encoding_sniffing_algorithm(DOM::Document& document, ByteBuffer c
|
||||
return maybe_transport_encoding;
|
||||
}
|
||||
|
||||
// 5. Optionally prescan the byte stream to determine its encoding, with the end condition being when the user agent decides that scanning further bytes would not
|
||||
// 5. Optionally, prescan the byte stream to determine its encoding, with the end condition being when the user agent decides that scanning further bytes would not
|
||||
// be efficient. User agents are encouraged to only prescan the first 1024 bytes. User agents may decide that scanning any bytes is not efficient, in which case
|
||||
// these substeps are entirely skipped.
|
||||
// The aforementioned algorithm returns either a character encoding or failure. If it returns a character encoding, then return the same encoding, with confidence tentative.
|
||||
|
||||
Reference in New Issue
Block a user