From 31d55cdaa83c9cbbc8de07dde4f82906e3264a2a Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 4 Oct 2024 14:35:33 +0700 Subject: [PATCH 1/3] add history --- features/draft/spec/html.yml | 9 ---- features/draft/spec/html.yml.dist | 45 ------------------- features/history.yml | 14 ++++++ features/history.yml.dist | 73 +++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 54 deletions(-) create mode 100644 features/history.yml create mode 100644 features/history.yml.dist diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index cfade7b5b3f..7e1c2bd3fa2 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -243,15 +243,6 @@ compat_features: - api.HashChangeEvent.HashChangeEvent - api.HashChangeEvent.newURL - api.HashChangeEvent.oldURL - - api.History - - api.History.back - - api.History.forward - - api.History.go - - api.History.length - - api.History.pushState - - api.History.replaceState - - api.History.scrollRestoration - - api.History.state - api.ImageData - api.ImageData.ImageData - api.ImageData.colorSpace diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 43ba815d852..0750c0d3fd4 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -47,11 +47,6 @@ compat_features: - api.HTMLInputElement.src - api.HTMLInputElement.type - api.HTMLInputElement.value - - api.History - - api.History.back - - api.History.forward - - api.History.go - - api.History.length - api.Location - api.Location.hash - api.Location.host @@ -1076,20 +1071,6 @@ compat_features: # safari_ios: "3" - html.elements.input.type_email - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # firefox: "4" - # firefox_android: "4" - # safari: "5" - # safari_ios: "4" - - api.History.pushState - - api.History.replaceState - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -1480,19 +1461,6 @@ compat_features: # safari_ios: "6" - html.elements.iframe.sandbox.allow-popups - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "19" - # chrome_android: "25" - # edge: "12" - # firefox: "4" - # firefox_android: "4" - # safari: "6" - # safari_ios: "6" - - api.History.state - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -2580,19 +2548,6 @@ compat_features: # safari_ios: "11.3" - html.elements.link.rel.preconnect - # baseline: high - # baseline_low_date: 2020-01-15 - # baseline_high_date: 2022-07-15 - # support: - # chrome: "46" - # chrome_android: "46" - # edge: "79" - # firefox: "46" - # firefox_android: "46" - # safari: "11" - # safari_ios: "11" - - api.History.scrollRestoration - # baseline: high # baseline_low_date: 2020-01-15 # baseline_high_date: 2022-07-15 diff --git a/features/history.yml b/features/history.yml new file mode 100644 index 00000000000..7c1181a719f --- /dev/null +++ b/features/history.yml @@ -0,0 +1,14 @@ +name: History +description: "The History API allows manipulation of the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." +spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface +caniuse: history +compat_features: + - api.History + - api.History.back + - api.History.forward + - api.History.go + - api.History.length + - api.History.pushState + - api.History.replaceState + - api.History.scrollRestoration + - api.History.state diff --git a/features/history.yml.dist b/features/history.yml.dist new file mode 100644 index 00000000000..2f1c1865327 --- /dev/null +++ b/features/history.yml.dist @@ -0,0 +1,73 @@ +# Generated from: history.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 + support: + chrome: "46" + chrome_android: "46" + edge: "79" + firefox: "46" + firefox_android: "46" + safari: "11" + safari_ios: "11" +compat_features: + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "1" + # safari_ios: "1" + - api.History + - api.History.back + - api.History.forward + - api.History.go + - api.History.length + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "4" + # firefox_android: "4" + # safari: "5" + # safari_ios: "4" + - api.History.pushState + - api.History.replaceState + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "19" + # chrome_android: "25" + # edge: "12" + # firefox: "4" + # firefox_android: "4" + # safari: "6" + # safari_ios: "6" + - api.History.state + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "46" + # chrome_android: "46" + # edge: "79" + # firefox: "46" + # firefox_android: "46" + # safari: "11" + # safari_ios: "11" + - api.History.scrollRestoration From 0e32855226fc097dd9077dbf53557d45e31d9faf Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Sat, 5 Oct 2024 10:38:15 +0700 Subject: [PATCH 2/3] Update features/history.yml Co-authored-by: Patrick Brosset --- features/history.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/history.yml b/features/history.yml index 7c1181a719f..c52872f2c03 100644 --- a/features/history.yml +++ b/features/history.yml @@ -1,5 +1,5 @@ name: History -description: "The History API allows manipulation of the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." +description: "The History API manipulates the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface caniuse: history compat_features: From a84f34cd23e107d6da064623e760074bd7561680 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Sat, 5 Oct 2024 10:44:48 +0700 Subject: [PATCH 3/3] match caniuse --- features/history.yml | 3 +++ features/history.yml.dist | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/features/history.yml b/features/history.yml index 7c1181a719f..01bb897bfc8 100644 --- a/features/history.yml +++ b/features/history.yml @@ -2,6 +2,9 @@ name: History description: "The History API allows manipulation of the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface caniuse: history +# This gets the feature closest to matching Caniuse. +status: + compute_from: api.History.pushState compat_features: - api.History - api.History.back diff --git a/features/history.yml.dist b/features/history.yml.dist index 2f1c1865327..906576ccb4c 100644 --- a/features/history.yml.dist +++ b/features/history.yml.dist @@ -3,16 +3,16 @@ status: baseline: high - baseline_low_date: 2020-01-15 - baseline_high_date: 2022-07-15 + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 support: - chrome: "46" - chrome_android: "46" - edge: "79" - firefox: "46" - firefox_android: "46" - safari: "11" - safari_ios: "11" + chrome: "5" + chrome_android: "18" + edge: "12" + firefox: "4" + firefox_android: "4" + safari: "5" + safari_ios: "4" compat_features: # baseline: high # baseline_low_date: 2015-07-29 @@ -31,6 +31,7 @@ compat_features: - api.History.go - api.History.length + # ⬇️ Same status as overall feature ⬇️ # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -58,7 +59,6 @@ compat_features: # safari_ios: "6" - api.History.state - # ⬇️ Same status as overall feature ⬇️ # baseline: high # baseline_low_date: 2020-01-15 # baseline_high_date: 2022-07-15