diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/interfaces/encoding.idl | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/interfaces/encoding.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/encoding.idl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/encoding.idl b/testing/web-platform/tests/interfaces/encoding.idl new file mode 100644 index 0000000000..a8cbe4431a --- /dev/null +++ b/testing/web-platform/tests/interfaces/encoding.idl @@ -0,0 +1,59 @@ +// 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=*] +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=*] +interface TextEncoder { + constructor(); + + [NewObject] Uint8Array encode(optional USVString input = ""); + TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination); +}; +TextEncoder includes TextEncoderCommon; + +[Exposed=*] +interface TextDecoderStream { + constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {}); +}; +TextDecoderStream includes TextDecoderCommon; +TextDecoderStream includes GenericTransformStream; + +[Exposed=*] +interface TextEncoderStream { + constructor(); +}; +TextEncoderStream includes TextEncoderCommon; +TextEncoderStream includes GenericTransformStream; |