mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
TextDecoder's Decode now receives a BufferSource as input
This commit is contained in:
@@ -5,15 +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;
|
||||
};
|
||||
|
||||
[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);
|
||||
// readonly attribute boolean ignoreBOM;
|
||||
[Throws]
|
||||
USVString decode(optional object input);
|
||||
USVString decode(optional BufferSource input, optional TextDecodeOptions options);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user