mirror of
https://github.com/lexmount/moli.git
synced 2026-10-02 16:00:44 +00:00
Accept text/json for JSON modules and use one is_json_mime classifier across modules, documents, JSONPath, and resource inspection. Remove the module and document aliases and recognize the seven registered application font types. Use Fetch MIME extraction over the complete Content-Type header list for script/style checks, workers, WebAssembly, ORB, and JSONPath. Derive classic script charsets from the same MIME record, including charset inheritance and resets when the MIME essence changes, while preserving BOM and fallback order. Cover valid and invalid MIME types, header ordering, combined fields, quoted commas, nosniff, and charset selection with regression tests. Validation: - cargo fmt --all - cargo clippy --workspace --all-targets --all-features -- -D warnings - cargo nextest run --no-fail-fast: 19,005 passed, 16 skipped - Focused WPT: Moli passes 9 cases / 261 subtests, including the three JSON regressions and all 31 script Content-Type extraction checks.