From a937fabb66f80605415c9df03b4e596dd4f9d5c8 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Wed, 2 Oct 2024 15:18:42 +0700 Subject: [PATCH 1/3] add atob/btoa based on CIU approach --- features/base64encodedecode.yml | 7 +++++++ features/base64encodedecode.yml.dist | 18 ++++++++++++++++++ features/draft/spec/html.yml | 2 -- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 features/base64encodedecode.yml create mode 100644 features/base64encodedecode.yml.dist diff --git a/features/base64encodedecode.yml b/features/base64encodedecode.yml new file mode 100644 index 00000000000..8a4dfce968e --- /dev/null +++ b/features/base64encodedecode.yml @@ -0,0 +1,7 @@ +name: Base64 encoding and decoding +description: Utility functions for encoding and decoding strings to and from base 64. +spec: https://html.spec.whatwg.org/multipage/webappapis.html#atob +caniuse: atob-btoa +compat_features: + - api.atob + - api.btoa diff --git a/features/base64encodedecode.yml.dist b/features/base64encodedecode.yml.dist new file mode 100644 index 00000000000..97593eaf4bb --- /dev/null +++ b/features/base64encodedecode.yml.dist @@ -0,0 +1,18 @@ +# Generated from: base64encodedecode.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 + support: + chrome: "4" + chrome_android: "18" + edge: "12" + firefox: "1" + firefox_android: "4" + safari: "3" + safari_ios: "1" +compat_features: + - api.atob + - api.btoa diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index 83b1ace9f7e..2a15c97324e 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -561,8 +561,6 @@ compat_features: - api.Worklet - api.Worklet.addModule - api.WorkletGlobalScope - - api.atob - - api.btoa - api.clearInterval - api.clearTimeout - api.crossOriginIsolated From 1331946c01a3e02d48493bda491368b9a304c3d8 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Wed, 2 Oct 2024 15:24:51 +0700 Subject: [PATCH 2/3] update html draft dist --- features/draft/spec/html.yml.dist | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index ca934e7ebf0..e3589dd58e4 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -839,20 +839,6 @@ compat_features: # safari_ios: "2" - api.HTMLSourceElement.media - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "4" - # chrome_android: "18" - # edge: "12" - # firefox: "1" - # firefox_android: "4" - # safari: "3" - # safari_ios: "1" - - api.atob - - api.btoa - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 From 9a6d10de4e9cbe4c475fadb61ce5e2dd37147908 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:52:00 +0700 Subject: [PATCH 3/3] Update features/base64encodedecode.yml Co-authored-by: Daniel D. Beck --- features/base64encodedecode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/base64encodedecode.yml b/features/base64encodedecode.yml index 8a4dfce968e..84ee4491dd9 100644 --- a/features/base64encodedecode.yml +++ b/features/base64encodedecode.yml @@ -1,5 +1,5 @@ name: Base64 encoding and decoding -description: Utility functions for encoding and decoding strings to and from base 64. +description: The `atob()` and `btoa()` global functions encode and decode strings to and from base 64, respectively. spec: https://html.spec.whatwg.org/multipage/webappapis.html#atob caniuse: atob-btoa compat_features: