Add explicit IgnoreBOM and ErrorMode options to LibTextCodec decoders, and thread them through TextDecoder and TextDecoderStream. This lets Web-facing decoder APIs preserve BOMs when requested and use fatal error handling without post-processing decoded output. NB: RemoveBOM was renamed to IgnoreBOM as "RemoveBOM" is the name used by encoding_rs and was previously an implementation detail. The new name matches what is used by the encoding standard as it is now also used in LibWeb. |
||
|---|---|---|
| .. | ||
| legacy-mb-japanese/iso-2022-jp | ||
| legacy-mb-schinese | ||
| streams | ||
| encodeInto.any.txt | ||
| iso-2022-jp-encoder.txt | ||
| textdecoder-eof.any.txt | ||
| textdecoder-fatal-streaming.any.txt | ||
| textdecoder-ignorebom.any.txt | ||
| textdecoder-mistakes.any.txt | ||
| textdecoder-utf16-surrogates.any.txt | ||