Files
tubestation/testing/web-platform/tests/interfaces/encoding.idl
Stephen McGruer feca2622d6 Bug 1665108 [wpt PR 25542] - Update interfaces/encoding.idl and test, a=testonly
Automatic update from web-platform-tests
Update interfaces/encoding.idl and test (#25542)

Closes https://github.com/web-platform-tests/wpt/pull/25537
--

wpt-commits: d7f9e16c9a9d578a05b59787ba4de68b710de725
wpt-pr: 25542
2020-09-23 09:02:30 +00:00

60 lines
1.6 KiB
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Encoding Standard (https://encoding.spec.whatwg.org/)
interface mixin TextDecoderCommon {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
};
dictionary TextDecoderOptions {
boolean fatal = false;
boolean ignoreBOM = false;
};
dictionary TextDecodeOptions {
boolean stream = false;
};
[Exposed=(Window,Worker)]
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;
interface mixin TextEncoderCommon {
readonly attribute DOMString encoding;
};
dictionary TextEncoderEncodeIntoResult {
unsigned long long read;
unsigned long long written;
};
[Exposed=(Window,Worker)]
interface TextEncoder {
constructor();
[NewObject] Uint8Array encode(optional USVString input = "");
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
};
TextEncoder includes TextEncoderCommon;
[Exposed=(Window,Worker)]
interface TextDecoderStream {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
};
TextDecoderStream includes TextDecoderCommon;
TextDecoderStream includes GenericTransformStream;
[Exposed=(Window,Worker)]
interface TextEncoderStream {
constructor();
};
TextEncoderStream includes TextEncoderCommon;
TextEncoderStream includes GenericTransformStream;