mirror of
https://github.com/servo/servo.git
synced 2025-06-30 12:03:38 +01:00
24 lines
666 B
Text
24 lines
666 B
Text
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 = "");
|
|
};
|