mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-18 15:52:21 +00:00
This mirrors the existing TextEncoderCommon split and lets a future TextDecoderStream share the same encoding/fatal/ignoreBOM state with TextDecoder. The state (decoder reference, encoding name, error mode, ignore-BOM flag, and BOM-seen flag) all moves into a TextDecoderCommonMixin base class so both interfaces can inherit it.
6 lines
217 B
Text
6 lines
217 B
Text
// https://encoding.spec.whatwg.org/#textdecodercommon
|
|
interface mixin TextDecoderCommon {
|
|
readonly attribute DOMString encoding;
|
|
readonly attribute boolean fatal;
|
|
readonly attribute boolean ignoreBOM;
|
|
};
|