Truly independent web browser
// https://encoding.spec.whatwg.org/#textdecoderoptions
dictionary TextDecoderOptions {
boolean fatal = false;
boolean ignoreBOM = false;
};
// https://encoding.spec.whatwg.org/#textdecodeoptions
dictionary TextDecodeOptions {
boolean stream = false;
};
// https://encoding.spec.whatwg.org/#textdecoder
[Exposed=*, ImplementedIn=Rust]
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;