Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add {{AvailableInWorkers}} for Encoding API #35993

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/encoding_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/decode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/fatal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/ignorebom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoder/textdecoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/fatal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/ignorebom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/readable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textdecoderstream/writable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoder/encode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoder/encodeinto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoder/encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoder/textencoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoderstream/encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoderstream/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoderstream/readable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/textencoderstream/writable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}.

Expand Down