Commit Graph
9 Commits
Author SHA1 Message Date
ldm0 0a417976e1 feat(encoding): expose CSS stylesheet byte decoding
Extract the existing CSS byte-decoding utility: protocol label, initial @charset and environment fallback selection, BOM precedence and the actual encoding returned for imports. Include its existing 1024-byte charset-sniffing regression test.

Source-commit: ccf589ee8a
2026-11-10 20:32:30 +08:00
ldm0 8c5ffea821 fix(xhr): encode URL queries with the owning document's charset 2026-10-21 16:41:12 +08:00
ldm0 98a342af73 feat(encoding): add a native streaming XHR response decoder
Add an incremental XHR text/document decoder that distinguishes text, XML and HTML response kinds. BOM precedence, transport charset, XML declarations and HTML sniffing retain state across arbitrary chunk boundaries. Native unit tests cover all split points and truncated input. This PR adds the decoder API; switching every XHR producer to it is separate work.
2026-10-11 18:03:06 +08:00
ldm0 5c44cd6eff refactor(encoding): rename shared document streaming decoder 2026-10-09 01:59:04 +08:00
ldm0 b88999b91e fix(modules): decode fetched source as UTF-8
Extract an independently mergeable topic from wpt-misc-fix at
a70a96f9d1.

Apply UTF-8 decoding directly to the baseline module fetch path without including import-map integrity changes.

Source commits:
- bffc90964d

Validation:
- cargo fmt --all
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo nextest run --no-fail-fast
2026-09-10 14:39:04 +08:00
ldm0 5e173f3a5a refactor(encoding): extract legacy charset detector 2026-08-27 17:53:51 +08:00
ldm0 23acc9d739 feat(encoding): detect unlabeled legacy HTML like Blink 2026-08-27 17:53:51 +08:00
ldm0 9b5961086c fix(encoding): separate response charset lookup 2026-08-26 20:28:00 +08:00
ldm0 27b5135cb6 Public preview 2026-08-11 00:10:12 +08:00