diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-02-15 14:16:21 +0330 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-02-16 22:48:32 +0330 |
commit | 16c0646b9d7da1c7b3482993873755e5e6a5d81f (patch) | |
tree | abfe1d3b1d5e5ca03fed2e26b4598bc559bac814 /Userland/Libraries/LibWeb/Encoding/TextDecoder.idl | |
parent | 57997ed3363b7df5a00db46958054fc20d789dcb (diff) | |
download | serenity-16c0646b9d7da1c7b3482993873755e5e6a5d81f.zip |
LibWeb: Implement a very basic version of TextDecoder
We had a very basic implementation of TextEncoder, let's add a
TextDecoder next to that :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Encoding/TextDecoder.idl')
-rw-r--r-- | Userland/Libraries/LibWeb/Encoding/TextDecoder.idl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Encoding/TextDecoder.idl b/Userland/Libraries/LibWeb/Encoding/TextDecoder.idl new file mode 100644 index 0000000000..acded928c7 --- /dev/null +++ b/Userland/Libraries/LibWeb/Encoding/TextDecoder.idl @@ -0,0 +1,13 @@ +[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; +}; |