mirror of
https://github.com/servo/servo.git
synced 2025-10-04 10:39:16 +01:00
28 lines
879 B
Text
28 lines
879 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: Encoding Standard (https://encoding.spec.whatwg.org/)
|
|
|
|
dictionary TextDecoderOptions {
|
|
boolean fatal = false;
|
|
boolean ignoreBOM = false;
|
|
};
|
|
|
|
dictionary TextDecodeOptions {
|
|
boolean stream = false;
|
|
};
|
|
|
|
[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options),
|
|
Exposed=(Window,Worker)]
|
|
interface TextDecoder {
|
|
readonly attribute DOMString encoding;
|
|
readonly attribute boolean fatal;
|
|
readonly attribute boolean ignoreBOM;
|
|
USVString decode(optional BufferSource input, optional TextDecodeOptions options);
|
|
};
|
|
[Constructor,
|
|
Exposed=(Window,Worker)]
|
|
interface TextEncoder {
|
|
readonly attribute DOMString encoding;
|
|
[NewObject] Uint8Array encode(optional USVString input = "");
|
|
};
|