TextDecoder.idl 447 B

12345678910111213
  1. [Exposed=(Window,Worker)]
  2. interface TextDecoder {
  3. // FIXME: 'optional TextDecoderOptions options = {}'
  4. constructor(optional DOMString label = "utf-8");
  5. // FIXME: [AllowShared] on the first parameter.
  6. // FIXME: 'optional TextDecodeOptions options = {}'
  7. USVString decode(optional BufferSource input);
  8. readonly attribute DOMString encoding;
  9. readonly attribute boolean fatal;
  10. readonly attribute boolean ignoreBOM;
  11. };