Andrew Shu 2018-03-24 21:57:14 -07:00
parent 34f388229d
commit 3990946a63
3 changed files with 81 additions and 27 deletions

View file

@ -5,18 +5,18 @@
// https://encoding.spec.whatwg.org/#interface-textdecoder
dictionary TextDecoderOptions {
boolean fatal = false;
// boolean ignoreBOM = false;
boolean ignoreBOM = false;
};
dictionary TextDecodeOptions {
// boolean stream = false;
boolean stream = false;
};
[Constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options), Exposed=(Window,Worker)]
interface TextDecoder {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
// readonly attribute boolean ignoreBOM;
readonly attribute boolean ignoreBOM;
[Throws]
USVString decode(optional BufferSource input, optional TextDecodeOptions options);
};