mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
16c0646b9d
We had a very basic implementation of TextEncoder, let's add a TextDecoder next to that :^)
14 lines
447 B
Plaintext
14 lines
447 B
Plaintext
[Exposed=(Window,Worker)]
|
|
interface TextDecoder {
|
|
// FIXME: 'optional TextDecoderOptions options = {}'
|
|
constructor(optional DOMString label = "utf-8");
|
|
|
|
// FIXME: [AllowShared] on the first parameter.
|
|
// FIXME: 'optional TextDecodeOptions options = {}'
|
|
USVString decode(optional BufferSource input);
|
|
|
|
readonly attribute DOMString encoding;
|
|
readonly attribute boolean fatal;
|
|
readonly attribute boolean ignoreBOM;
|
|
};
|