Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make document's character encoding reflect byte order mark
This change fixes a bug where document's character encoding was set to the return value of the encoding sniffing algorithm rather than to the actual encoding used, which differed when the stream started with a byte order mark. This change incorporates BOM sniffing into the encoding sniffing algorithm, ensuring both encodings are identical. Tests: web-platform-tests/wpt#22276. Closes #1077.
- Loading branch information