From 64aa2248a9a83b866ded21145eeba98fec0fac71 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 4 Oct 2024 13:45:52 +0700 Subject: [PATCH 1/3] add timeout/interval --- features/draft/spec/html.yml | 4 ---- features/draft/spec/html.yml.dist | 16 ---------------- features/setinterval.yml | 9 +++++++++ features/settimeout.yml | 9 +++++++++ 4 files changed, 18 insertions(+), 20 deletions(-) create mode 100644 features/setinterval.yml create mode 100644 features/settimeout.yml diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index cfade7b5b3f..8883b966fc2 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -544,15 +544,11 @@ compat_features: - api.Worklet - api.Worklet.addModule - api.WorkletGlobalScope - - api.clearInterval - - api.clearTimeout - api.crossOriginIsolated - api.isSecureContext - api.origin - api.queueMicrotask - api.reportError - - api.setInterval - - api.setTimeout - css.selectors.active - css.selectors.checked - css.selectors.disabled diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 43ba815d852..8329d305ad3 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -83,9 +83,6 @@ compat_features: - api.Window.open - api.Window.opener - api.Window.prompt - - api.clearInterval - - api.setInterval - - api.setTimeout - css.selectors.active - css.selectors.focus - css.selectors.visited @@ -269,19 +266,6 @@ compat_features: # safari_ios: "1" - api.HTMLFormControlsCollection - # 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: "4" - # safari_ios: "1" - - api.clearTimeout - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 diff --git a/features/setinterval.yml b/features/setinterval.yml new file mode 100644 index 00000000000..00ba95f7303 --- /dev/null +++ b/features/setinterval.yml @@ -0,0 +1,9 @@ +# BCD: https://github.com/mdn/browser-compat-data/tree/main/api/_globals/setInterval.json +# MDN: https://developer.mozilla.org/docs/Web/API/setInterval +# CIU: https://caniuse.com/?search=setInterval +name: setInterval +description: "The `setInterval()` global function repeatedly executes provided code on a given delay, and the accompanying `clearInterval()` cancels the interval." +spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval-dev +compat_features: + - api.setInterval + - api.clearInterval diff --git a/features/settimeout.yml b/features/settimeout.yml new file mode 100644 index 00000000000..3c674e14109 --- /dev/null +++ b/features/settimeout.yml @@ -0,0 +1,9 @@ +# BCD: https://github.com/mdn/browser-compat-data/tree/main/api/_globals/setTimeout.json +# MDN: https://developer.mozilla.org/docs/Web/API/setTimeout +# CIU: https://caniuse.com/?search=setTimeout +name: setTimeout +description: "The `setTimeout()` global function executes provided code after a given duration of time, and the accompanying `clearTimeout()` cancels the timer." +spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout-dev +compat_features: + - api.setTimeout + - api.clearTimeout From ad0e4ef9e223506a796bdabf6855cb13c2756d6f Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 4 Oct 2024 14:01:13 +0700 Subject: [PATCH 2/3] remove old comments, update spec links --- features/setinterval.yml | 5 +---- features/settimeout.yml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/features/setinterval.yml b/features/setinterval.yml index 00ba95f7303..e220bcede30 100644 --- a/features/setinterval.yml +++ b/features/setinterval.yml @@ -1,9 +1,6 @@ -# BCD: https://github.com/mdn/browser-compat-data/tree/main/api/_globals/setInterval.json -# MDN: https://developer.mozilla.org/docs/Web/API/setInterval -# CIU: https://caniuse.com/?search=setInterval name: setInterval description: "The `setInterval()` global function repeatedly executes provided code on a given delay, and the accompanying `clearInterval()` cancels the interval." -spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval-dev +spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers compat_features: - api.setInterval - api.clearInterval diff --git a/features/settimeout.yml b/features/settimeout.yml index 3c674e14109..f6c9f84d0a0 100644 --- a/features/settimeout.yml +++ b/features/settimeout.yml @@ -1,9 +1,6 @@ -# BCD: https://github.com/mdn/browser-compat-data/tree/main/api/_globals/setTimeout.json -# MDN: https://developer.mozilla.org/docs/Web/API/setTimeout -# CIU: https://caniuse.com/?search=setTimeout name: setTimeout description: "The `setTimeout()` global function executes provided code after a given duration of time, and the accompanying `clearTimeout()` cancels the timer." -spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout-dev +spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers compat_features: - api.setTimeout - api.clearTimeout From 2436fc69770ba14611b8e4d6b35abfb47d174c40 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 4 Oct 2024 14:38:25 +0700 Subject: [PATCH 3/3] add dist files --- features/setinterval.yml.dist | 18 +++++++++++++++ features/settimeout.yml.dist | 42 +++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 features/setinterval.yml.dist create mode 100644 features/settimeout.yml.dist diff --git a/features/setinterval.yml.dist b/features/setinterval.yml.dist new file mode 100644 index 00000000000..afd08604bb5 --- /dev/null +++ b/features/setinterval.yml.dist @@ -0,0 +1,18 @@ +# Generated from: setinterval.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: "1" + chrome_android: "18" + edge: "12" + firefox: "1" + firefox_android: "4" + safari: "1" + safari_ios: "1" +compat_features: + - api.clearInterval + - api.setInterval diff --git a/features/settimeout.yml.dist b/features/settimeout.yml.dist new file mode 100644 index 00000000000..b4809464ba4 --- /dev/null +++ b/features/settimeout.yml.dist @@ -0,0 +1,42 @@ +# Generated from: settimeout.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: "1" + chrome_android: "18" + edge: "12" + firefox: "1" + firefox_android: "4" + safari: "4" + safari_ios: "1" +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.setTimeout + + # ⬇️ Same status as overall feature ⬇️ + # 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: "4" + # safari_ios: "1" + - api.clearTimeout