Files
tubestation/testing/web-platform/tests/interfaces/encoding.idl
Luke Bjerring 5511ed24ec Bug 1452643 [wpt PR 9780] - Update the encoding IDL file, a=testonly
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
2018-04-15 08:30:59 +01:00

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 = "");
};