https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 952bda327c9bc8efae043de3071d0421efe702d1 authored by Boris Zbarsky on 26 March 2018, 18:16:29 UTC
part 3. Add testing for what mutation observers happen when doing DOMTokenList.replace.
Tip revision: 952bda3
encoding.idl
dictionary TextDecoderOptions {
  boolean fatal = false;
  boolean ignoreBOM = false;
};

dictionary TextDecodeOptions {
  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;
  USVString decode(optional BufferSource input, optional TextDecodeOptions options);
};

[Constructor,
 Exposed=(Window,Worker)]
interface TextEncoder {
  readonly attribute DOMString encoding;
  [NewObject] Uint8Array encode(optional USVString input = "");
};
back to top