From 13f6c2d4d84e0f93b39416a3251fb07d74c8b81c Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 7 Oct 2024 15:12:06 +0700 Subject: [PATCH 1/2] update draft dist --- features/dataset.yml | 13 ++++++++ features/dataset.yml.dist | 55 +++++++++++++++++++++++++++++++ features/draft/spec/html.yml | 4 --- features/draft/spec/html.yml.dist | 16 --------- 4 files changed, 68 insertions(+), 20 deletions(-) create mode 100644 features/dataset.yml create mode 100644 features/dataset.yml.dist diff --git a/features/dataset.yml b/features/dataset.yml new file mode 100644 index 00000000000..386a2fad830 --- /dev/null +++ b/features/dataset.yml @@ -0,0 +1,13 @@ +name: Dataset +description: "The `dataset` feature is for attaching and accessing custom data on elements, using either the `dataset` property or attributes prefixed with `data-`." +spec: https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes +caniuse: dataset +# This matches Caniuse, which specifically notes that support figures are derived from +# the HTML support in that spec, not SVG/MathML. +status: + compute_from: api.HTMLElement.dataset +compat_features: + - api.DOMStringMap + - api.HTMLElement.dataset + - api.MathMLElement.dataset + - api.SVGElement.dataset diff --git a/features/dataset.yml.dist b/features/dataset.yml.dist new file mode 100644 index 00000000000..afec0e79475 --- /dev/null +++ b/features/dataset.yml.dist @@ -0,0 +1,55 @@ +# Generated from: dataset.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: "7" + chrome_android: "18" + edge: "12" + firefox: "6" + firefox_android: "6" + safari: "5.1" + safari_ios: "5" +compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "7" + # chrome_android: "18" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari: "5.1" + # safari_ios: "5" + - api.DOMStringMap + - api.HTMLElement.dataset + + # baseline: high + # baseline_low_date: 2018-04-30 + # baseline_high_date: 2020-10-30 + # support: + # chrome: "55" + # chrome_android: "55" + # edge: "17" + # firefox: "51" + # firefox_android: "51" + # safari: "5.1" + # safari_ios: "5" + - api.SVGElement.dataset + + # baseline: low + # baseline_low_date: 2023-01-12 + # support: + # chrome: "109" + # chrome_android: "109" + # edge: "109" + # firefox: "71" + # firefox_android: "79" + # safari: "13.1" + # safari_ios: "13.4" + - api.MathMLElement.dataset diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index 6c71514a0df..d9547c83d59 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -16,7 +16,6 @@ compat_features: - api.DOMStringList.contains - api.DOMStringList.item - api.DOMStringList.length - - api.DOMStringMap - api.DataTransfer - api.DataTransfer.DataTransfer - api.DataTransfer.clearData @@ -133,7 +132,6 @@ compat_features: - api.HTMLElement.change_event - api.HTMLElement.click - api.HTMLElement.contentEditable - - api.HTMLElement.dataset - api.HTMLElement.dir - api.HTMLElement.drag_event - api.HTMLElement.dragend_event @@ -265,7 +263,6 @@ compat_features: - api.Location.search - api.Location.toString - api.MathMLElement.blur - - api.MathMLElement.dataset - api.MathMLElement.focus - api.MathMLElement.nonce - api.MathMLElement.tabIndex @@ -399,7 +396,6 @@ compat_features: - api.RadioNodeList.value - api.Range.createContextualFragment - api.SVGElement.blur - - api.SVGElement.dataset - api.SVGElement.focus - api.SVGElement.nonce - api.SVGElement.tabIndex diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index a7f6283a5a1..d31c81e191d 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -1205,8 +1205,6 @@ compat_features: # firefox_android: "6" # safari: "5.1" # safari_ios: "5" - - api.DOMStringMap - - api.HTMLElement.dataset - html.global_attributes.data_attributes # baseline: high @@ -2165,19 +2163,6 @@ compat_features: - api.HTMLInputElement.minLength - html.elements.input.minlength - # baseline: high - # baseline_low_date: 2018-04-30 - # baseline_high_date: 2020-10-30 - # support: - # chrome: "55" - # chrome_android: "55" - # edge: "17" - # firefox: "51" - # firefox_android: "51" - # safari: "5.1" - # safari_ios: "5" - - api.SVGElement.dataset - # baseline: high # baseline_low_date: 2018-05-09 # baseline_high_date: 2020-11-09 @@ -3021,7 +3006,6 @@ compat_features: # safari: "13.1" # safari_ios: "13.4" - api.MathMLElement.blur - - api.MathMLElement.dataset - api.MathMLElement.focus - api.MathMLElement.tabIndex From 68a5c6dbf2fd9379c8283d70fe9b47ab610ca72c Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:12:59 +0700 Subject: [PATCH 2/2] Update features/dataset.yml Co-authored-by: James Stuckey Weber --- features/dataset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/dataset.yml b/features/dataset.yml index 386a2fad830..49e610351bd 100644 --- a/features/dataset.yml +++ b/features/dataset.yml @@ -1,5 +1,5 @@ name: Dataset -description: "The `dataset` feature is for attaching and accessing custom data on elements, using either the `dataset` property or attributes prefixed with `data-`." +description: "The `dataset` API attaches and accesses custom data on elements, using either the `dataset` property of `HTMLElement` or attributes prefixed with `data-`." spec: https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes caniuse: dataset # This matches Caniuse, which specifically notes that support figures are derived from