From 25a2dcfefad029e10df3303c859abda14dfa7833 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Sun, 22 Sep 2024 15:29:36 +0800 Subject: [PATCH] add --- files/en-us/web/api/encoding_api/index.md | 2 +- files/en-us/web/api/textdecoder/decode/index.md | 2 +- files/en-us/web/api/textdecoder/encoding/index.md | 2 +- files/en-us/web/api/textdecoder/fatal/index.md | 2 +- files/en-us/web/api/textdecoder/ignorebom/index.md | 2 +- files/en-us/web/api/textdecoder/index.md | 2 +- files/en-us/web/api/textdecoder/textdecoder/index.md | 2 +- files/en-us/web/api/textdecoderstream/encoding/index.md | 2 +- files/en-us/web/api/textdecoderstream/fatal/index.md | 2 +- files/en-us/web/api/textdecoderstream/ignorebom/index.md | 2 +- files/en-us/web/api/textdecoderstream/index.md | 2 +- files/en-us/web/api/textdecoderstream/readable/index.md | 2 +- .../en-us/web/api/textdecoderstream/textdecoderstream/index.md | 2 +- files/en-us/web/api/textdecoderstream/writable/index.md | 2 +- files/en-us/web/api/textencoder/encode/index.md | 2 +- files/en-us/web/api/textencoder/encodeinto/index.md | 2 +- files/en-us/web/api/textencoder/encoding/index.md | 2 +- files/en-us/web/api/textencoder/index.md | 2 +- files/en-us/web/api/textencoder/textencoder/index.md | 2 +- files/en-us/web/api/textencoderstream/encoding/index.md | 2 +- files/en-us/web/api/textencoderstream/index.md | 2 +- files/en-us/web/api/textencoderstream/readable/index.md | 2 +- .../en-us/web/api/textencoderstream/textencoderstream/index.md | 2 +- files/en-us/web/api/textencoderstream/writable/index.md | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/files/en-us/web/api/encoding_api/index.md b/files/en-us/web/api/encoding_api/index.md index c68d9b2f4b9c756..7965cda112ede0d 100644 --- a/files/en-us/web/api/encoding_api/index.md +++ b/files/en-us/web/api/encoding_api/index.md @@ -9,7 +9,7 @@ browser-compat: - api.TextDecoderStream --- -{{DefaultAPISidebar("Encoding API")}} {{AvailableInWorkers}} +{{DefaultAPISidebar("Encoding API")}}{{AvailableInWorkers}} The **Encoding API** provides a mechanism for handling text in various {{Glossary("character encoding", "character encodings")}}, including legacy non-{{Glossary("UTF-8")}} encodings. diff --git a/files/en-us/web/api/textdecoder/decode/index.md b/files/en-us/web/api/textdecoder/decode/index.md index 23087e6649f5291..f654ff5b180568a 100644 --- a/files/en-us/web/api/textdecoder/decode/index.md +++ b/files/en-us/web/api/textdecoder/decode/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.TextDecoder.decode --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter. diff --git a/files/en-us/web/api/textdecoder/encoding/index.md b/files/en-us/web/api/textdecoder/encoding/index.md index 4ed10d85d80788b..172d4a0cc3102de 100644 --- a/files/en-us/web/api/textdecoder/encoding/index.md +++ b/files/en-us/web/api/textdecoder/encoding/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoder.encoding --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoder.encoding`** read-only property returns a string containing the name of the decoding algorithm used by the specific decoder object. diff --git a/files/en-us/web/api/textdecoder/fatal/index.md b/files/en-us/web/api/textdecoder/fatal/index.md index b745713ba88434f..996992456469aea 100644 --- a/files/en-us/web/api/textdecoder/fatal/index.md +++ b/files/en-us/web/api/textdecoder/fatal/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoder.fatal --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`fatal`** read-only property of the {{domxref("TextDecoder")}} interface is a {{jsxref('Boolean')}} indicating whether the error mode is fatal. diff --git a/files/en-us/web/api/textdecoder/ignorebom/index.md b/files/en-us/web/api/textdecoder/ignorebom/index.md index 0b577398dd8057a..41bfdd93ee45f32 100644 --- a/files/en-us/web/api/textdecoder/ignorebom/index.md +++ b/files/en-us/web/api/textdecoder/ignorebom/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoder.ignoreBOM --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`ignoreBOM`** read-only property of the {{domxref("TextDecoder")}} interface is a {{jsxref('Boolean')}} indicating whether the [byte order mark](https://www.w3.org/International/questions/qa-byte-order-mark) will be included in the output or skipped over. diff --git a/files/en-us/web/api/textdecoder/index.md b/files/en-us/web/api/textdecoder/index.md index f796ee2417d5ed5..9d8a5c517afde10 100644 --- a/files/en-us/web/api/textdecoder/index.md +++ b/files/en-us/web/api/textdecoder/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.TextDecoder --- -{{APIRef("Encoding API")}} {{AvailableInWorkers}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. A decoder takes a stream of bytes as input and emits a stream of code points. diff --git a/files/en-us/web/api/textdecoder/textdecoder/index.md b/files/en-us/web/api/textdecoder/textdecoder/index.md index 67c067cbcfb60a3..add8dbea23031e3 100644 --- a/files/en-us/web/api/textdecoder/textdecoder/index.md +++ b/files/en-us/web/api/textdecoder/textdecoder/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.TextDecoder.TextDecoder --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoder()`** constructor returns a newly created {{DOMxRef("TextDecoder")}} object for the encoding specified in parameter. diff --git a/files/en-us/web/api/textdecoderstream/encoding/index.md b/files/en-us/web/api/textdecoderstream/encoding/index.md index 2f29ba15ece5a39..a6d29bb7ce7e26b 100644 --- a/files/en-us/web/api/textdecoderstream/encoding/index.md +++ b/files/en-us/web/api/textdecoderstream/encoding/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoderStream.encoding --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`encoding`** read-only property of the {{domxref("TextDecoderStream")}} interface returns a string containing the name of the encoding algorithm used by the specific decoder. diff --git a/files/en-us/web/api/textdecoderstream/fatal/index.md b/files/en-us/web/api/textdecoderstream/fatal/index.md index df56e47c60da736..eb0ac17b56367cd 100644 --- a/files/en-us/web/api/textdecoderstream/fatal/index.md +++ b/files/en-us/web/api/textdecoderstream/fatal/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoderStream.fatal --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`fatal`** read-only property of the {{domxref("TextDecoderStream")}} interface is a {{jsxref("boolean")}} indicating if the error mode of the `TextDecoderStream` object is set to `fatal`. diff --git a/files/en-us/web/api/textdecoderstream/ignorebom/index.md b/files/en-us/web/api/textdecoderstream/ignorebom/index.md index d1d375a4150ae51..b00d9267e459674 100644 --- a/files/en-us/web/api/textdecoderstream/ignorebom/index.md +++ b/files/en-us/web/api/textdecoderstream/ignorebom/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoderStream.ignoreBOM --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`ignoreBOM`** read-only property of the {{domxref("TextDecoderStream")}} interface is a {{jsxref('Boolean')}} indicating whether the [byte order mark](https://www.w3.org/International/questions/qa-byte-order-mark) will be included in the output or skipped over. diff --git a/files/en-us/web/api/textdecoderstream/index.md b/files/en-us/web/api/textdecoderstream/index.md index a944cfa078684a9..a5a579fcd2d2b9c 100644 --- a/files/en-us/web/api/textdecoderstream/index.md +++ b/files/en-us/web/api/textdecoderstream/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.TextDecoderStream --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoderStream`** interface of the {{domxref('Encoding API','','',' ')}} converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of {{domxref("TextDecoder")}}. diff --git a/files/en-us/web/api/textdecoderstream/readable/index.md b/files/en-us/web/api/textdecoderstream/readable/index.md index 8a3bdb3e8ed9398..eeacacb4b6179c5 100644 --- a/files/en-us/web/api/textdecoderstream/readable/index.md +++ b/files/en-us/web/api/textdecoderstream/readable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoderStream.readable --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`readable`** read-only property of the {{domxref("TextDecoderStream")}} interface returns a {{domxref("ReadableStream")}}. diff --git a/files/en-us/web/api/textdecoderstream/textdecoderstream/index.md b/files/en-us/web/api/textdecoderstream/textdecoderstream/index.md index 3d9a17b264f47b2..916a440eb7fa033 100644 --- a/files/en-us/web/api/textdecoderstream/textdecoderstream/index.md +++ b/files/en-us/web/api/textdecoderstream/textdecoderstream/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.TextDecoderStream.TextDecoderStream --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextDecoderStream()`** constructor creates a new {{domxref("TextDecoderStream")}} object which is used to convert a stream of text in a binary encoding into strings. diff --git a/files/en-us/web/api/textdecoderstream/writable/index.md b/files/en-us/web/api/textdecoderstream/writable/index.md index 0570e0cfc05b60f..b0f36c8f3e24b58 100644 --- a/files/en-us/web/api/textdecoderstream/writable/index.md +++ b/files/en-us/web/api/textdecoderstream/writable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextDecoderStream.writable --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`writable`** read-only property of the {{domxref("TextDecoderStream")}} interface returns a {{domxref("WritableStream")}}. diff --git a/files/en-us/web/api/textencoder/encode/index.md b/files/en-us/web/api/textencoder/encode/index.md index 6836ff2f7cd050c..3b3ab9728c9748b 100644 --- a/files/en-us/web/api/textencoder/encode/index.md +++ b/files/en-us/web/api/textencoder/encode/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.TextEncoder.encode --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoder.encode()`** method takes a string as input, and returns a {{jsxref("Global_Objects/Uint8Array", "Uint8Array")}} containing the text given in parameters encoded with the specific method for that {{domxref("TextEncoder")}} object. diff --git a/files/en-us/web/api/textencoder/encodeinto/index.md b/files/en-us/web/api/textencoder/encodeinto/index.md index 19e28fa6ecced5e..b457309dbc32f38 100644 --- a/files/en-us/web/api/textencoder/encodeinto/index.md +++ b/files/en-us/web/api/textencoder/encodeinto/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.TextEncoder.encodeInto --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination {{jsxref("Uint8Array")}} to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the diff --git a/files/en-us/web/api/textencoder/encoding/index.md b/files/en-us/web/api/textencoder/encoding/index.md index 43e68f3959967de..b14c738f747fb56 100644 --- a/files/en-us/web/api/textencoder/encoding/index.md +++ b/files/en-us/web/api/textencoder/encoding/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextEncoder.encoding --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoder.encoding`** read-only property returns a string containing the name of the encoding algorithm used by the specific encoder. diff --git a/files/en-us/web/api/textencoder/index.md b/files/en-us/web/api/textencoder/index.md index fc4c95687dc77c5..ff4fc340b153cb1 100644 --- a/files/en-us/web/api/textencoder/index.md +++ b/files/en-us/web/api/textencoder/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.TextEncoder --- -{{APIRef("Encoding API")}} {{AvailableInWorkers}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. diff --git a/files/en-us/web/api/textencoder/textencoder/index.md b/files/en-us/web/api/textencoder/textencoder/index.md index cb0043c1dfa848e..53964b1166a910c 100644 --- a/files/en-us/web/api/textencoder/textencoder/index.md +++ b/files/en-us/web/api/textencoder/textencoder/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.TextEncoder.TextEncoder --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoder()`** constructor returns a newly created {{DOMxRef("TextEncoder")}} object that will generate a byte stream with UTF-8 encoding. diff --git a/files/en-us/web/api/textencoderstream/encoding/index.md b/files/en-us/web/api/textencoderstream/encoding/index.md index 76b72c3b04b8fec..616031fa81787fe 100644 --- a/files/en-us/web/api/textencoderstream/encoding/index.md +++ b/files/en-us/web/api/textencoderstream/encoding/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextEncoderStream.encoding --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`encoding`** read-only property of the {{domxref("TextEncoderStream")}} interface returns a string containing the name of the encoding algorithm used by the current `TextEncoderStream` object. diff --git a/files/en-us/web/api/textencoderstream/index.md b/files/en-us/web/api/textencoderstream/index.md index 3b79aac71240cad..8ee87f9bfb3df2f 100644 --- a/files/en-us/web/api/textencoderstream/index.md +++ b/files/en-us/web/api/textencoderstream/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.TextEncoderStream --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoderStream`** interface of the {{domxref('Encoding API','','',' ')}} converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of {{domxref("TextEncoder")}}. diff --git a/files/en-us/web/api/textencoderstream/readable/index.md b/files/en-us/web/api/textencoderstream/readable/index.md index 1a1c49033db7ecc..6111a9014bfa851 100644 --- a/files/en-us/web/api/textencoderstream/readable/index.md +++ b/files/en-us/web/api/textencoderstream/readable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextEncoderStream.readable --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`readable`** read-only property of the {{domxref("TextEncoderStream")}} interface returns a {{domxref("ReadableStream")}}. diff --git a/files/en-us/web/api/textencoderstream/textencoderstream/index.md b/files/en-us/web/api/textencoderstream/textencoderstream/index.md index c9e29c354ad9b2f..9986e20a96635d0 100644 --- a/files/en-us/web/api/textencoderstream/textencoderstream/index.md +++ b/files/en-us/web/api/textencoderstream/textencoderstream/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.TextEncoderStream.TextEncoderStream --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`TextEncoderStream()`** constructor creates a new {{domxref("TextEncoderStream")}} object which is used to convert a stream of strings into bytes using UTF-8 encoding. diff --git a/files/en-us/web/api/textencoderstream/writable/index.md b/files/en-us/web/api/textencoderstream/writable/index.md index a8bad1e1522da0e..14e28b3e1def1e3 100644 --- a/files/en-us/web/api/textencoderstream/writable/index.md +++ b/files/en-us/web/api/textencoderstream/writable/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.TextEncoderStream.writable --- -{{APIRef("Encoding API")}} +{{APIRef("Encoding API")}}{{AvailableInWorkers}} The **`writable`** read-only property of the {{domxref("TextEncoderStream")}} interface returns a {{domxref("WritableStream")}}.