Automatic update from web-platform-testsUpdate the encoding IDL file (#9780) Also update the existing idlharness.js test to use it. wpt-commits: b202bbb5aa0d235b22bac11fe902eab1094ef9d2 wpt-pr: 9780 wpt-commits: b202bbb5aa0d235b22bac11fe902eab1094ef9d2 wpt-pr: 9780
25 lines
666 B
Plaintext
25 lines
666 B
Plaintext
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 = "");
|
|
};
|