TextDecoder
Generated from idl/encoding.webidl when the site was built at 7aa23e2.
TextDecoder is an interface in idl/encoding.webidl, exposed in Window, Worker. It includes TextDecoderCommon. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| Text encoding and decoding | Widely available | Partial 2.0% 23593 of 1151764 subtests pass | 6 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});int32_t niso_text_decoder_new(niso_dom* dom, const char* label, size_t label_len, const niso_text_decoder_options* options, niso_handle* out);decode()
Section titled “decode()”USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});int32_t niso_text_decoder_decode(niso_dom* dom, niso_handle self, const uint8_t* input, size_t input_len, const niso_text_decode_options* options, niso_str* out);encoding
Section titled “encoding”readonly attribute DOMString encoding;int32_t niso_text_decoder_common_get_encoding(niso_dom* dom, niso_handle self, niso_str* out);readonly attribute boolean fatal;int32_t niso_text_decoder_common_get_fatal(niso_dom* dom, niso_handle self, bool* out);ignoreBOM
Section titled “ignoreBOM”readonly attribute boolean ignoreBOM;int32_t niso_text_decoder_common_get_ignore_bom(niso_dom* dom, niso_handle self, bool* out);Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
worker_support(Text encoding and decoding)