Skip to content

Commit 6e8a2df

Browse files
autonomejamesnw
andauthored
Add Text Encoding API (#2387)
Co-authored-by: James Stuckey Weber <[email protected]>
1 parent 65618f5 commit 6e8a2df

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

features/draft/spec/encoding.yml renamed to features/text-encoding.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
draft_date: 2024-10-21
2-
name: Encoding Standard
3-
description: TODO
1+
name: Text encoding and decoding
2+
description: "The `TextEncoder` API transforms a stream of code points into a byte stream with UTF-8 encoding, and `TextDecoder` does the reverse."
43
spec: https://encoding.spec.whatwg.org/
4+
caniuse: textencoder
5+
# Status generated to match Caniuse.
6+
status:
7+
compute_from:
8+
- api.TextDecoder
9+
- api.TextEncoder
510
compat_features:
611
- api.TextDecoder
712
- api.TextDecoder.TextDecoder

features/draft/spec/encoding.yml.dist renamed to features/text-encoding.yml.dist

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# Generated from: encoding.yml
1+
# Generated from: text-encoding.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

44
status:
5-
baseline: low
6-
baseline_low_date: 2022-09-20
5+
baseline: high
6+
baseline_low_date: 2020-01-15
7+
baseline_high_date: 2022-07-15
78
support:
8-
chrome: "74"
9-
chrome_android: "74"
9+
chrome: "38"
10+
chrome_android: "38"
1011
edge: "79"
11-
firefox: "105"
12-
firefox_android: "105"
13-
safari: "14.1"
14-
safari_ios: "14.5"
12+
firefox: "19"
13+
firefox_android: "19"
14+
safari: "10.1"
15+
safari_ios: "10.3"
1516
compat_features:
1617
# baseline: high
1718
# baseline_low_date: 2020-01-15
@@ -29,6 +30,7 @@ compat_features:
2930
- api.TextEncoder.encode
3031
- api.TextEncoder.encoding
3132

33+
# ⬇️ Same status as overall feature ⬇️
3234
# baseline: high
3335
# baseline_low_date: 2020-01-15
3436
# baseline_high_date: 2022-07-15

0 commit comments

Comments
 (0)