summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Encoding/TextDecoder.idl
blob: acded928c7c0504942d12d5113d4003a52a0060b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
};