From 1e5661452237c544a48b3d7ae7562da210a27f96 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Fri, 24 Jan 2025 23:25:35 +0100 Subject: [PATCH 1/2] Add `inputmode` global HTML attribute --- features/contenteditable.yml | 1 - features/contenteditable.yml.dist | 32 +++++++++---------------------- features/inputmode.yml | 7 +++++++ features/inputmode.yml.dist | 18 +++++++++++++++++ 4 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 features/inputmode.yml create mode 100644 features/inputmode.yml.dist diff --git a/features/contenteditable.yml b/features/contenteditable.yml index b7e62532d01..20eaac140bd 100644 --- a/features/contenteditable.yml +++ b/features/contenteditable.yml @@ -5,5 +5,4 @@ caniuse: contenteditable compat_features: - html.global_attributes.contenteditable - api.HTMLElement.contentEditable - - api.HTMLElement.inputMode - api.HTMLElement.isContentEditable diff --git a/features/contenteditable.yml.dist b/features/contenteditable.yml.dist index e494c16e8bc..6d2f0177b4e 100644 --- a/features/contenteditable.yml.dist +++ b/features/contenteditable.yml.dist @@ -3,16 +3,16 @@ status: baseline: high - baseline_low_date: 2021-12-07 - baseline_high_date: 2024-06-07 + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 support: - chrome: "66" - chrome_android: "66" - edge: "79" - firefox: "95" - firefox_android: "79" - safari: "12.1" - safari_ios: "12.2" + chrome: "1" + chrome_android: "18" + edge: "12" + firefox: "4" + firefox_android: "4" + safari: ≤4 + safari_ios: ≤3.2 compat_features: # baseline: high # baseline_low_date: 2015-07-29 @@ -52,17 +52,3 @@ compat_features: # safari: "3" # safari_ios: "1" - api.HTMLElement.isContentEditable - - # ⬇️ Same status as overall feature ⬇️ - # baseline: high - # baseline_low_date: 2021-12-07 - # baseline_high_date: 2024-06-07 - # support: - # chrome: "66" - # chrome_android: "66" - # edge: "79" - # firefox: "95" - # firefox_android: "79" - # safari: "12.1" - # safari_ios: "12.2" - - api.HTMLElement.inputMode diff --git a/features/inputmode.yml b/features/inputmode.yml new file mode 100644 index 00000000000..cef0a88a7f4 --- /dev/null +++ b/features/inputmode.yml @@ -0,0 +1,7 @@ +name: inputmode +description: The `inputmode` global HTML attribute gives a hint about what type of data is to be entered into an `` element, such as `text`, `numeric`, or `email`, so the browser may choose a virtual keyboard. +spec: https://html.spec.whatwg.org/multipage/interaction.html#attr-inputmode +caniuse: input-inputmode +compat_features: + - api.HTMLElement.inputMode + - html.global_attributes.inputmode diff --git a/features/inputmode.yml.dist b/features/inputmode.yml.dist new file mode 100644 index 00000000000..381ce3f0b8a --- /dev/null +++ b/features/inputmode.yml.dist @@ -0,0 +1,18 @@ +# Generated from: inputmode.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2021-12-07 + baseline_high_date: 2024-06-07 + support: + chrome: "66" + chrome_android: "66" + edge: "79" + firefox: "95" + firefox_android: "79" + safari: "12.1" + safari_ios: "12.2" +compat_features: + - api.HTMLElement.inputMode + - html.global_attributes.inputmode From 420cb318df40895ddf2e1b161ed19722340694da Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 6 Feb 2025 16:11:44 +0100 Subject: [PATCH 2/2] Apply suggested description Co-authored-by: Patrick Brosset --- features/inputmode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/inputmode.yml b/features/inputmode.yml index cef0a88a7f4..fe9ba7c8289 100644 --- a/features/inputmode.yml +++ b/features/inputmode.yml @@ -1,5 +1,5 @@ name: inputmode -description: The `inputmode` global HTML attribute gives a hint about what type of data is to be entered into an `` element, such as `text`, `numeric`, or `email`, so the browser may choose a virtual keyboard. +description: The `inputmode` global HTML attribute gives a hint about what type of data is to be entered into an `` element, such as `text`, `numeric`, or `email`, so the browser may help the user enter data using an adapted input mechanism, such as an on-screen virtual keyboard. spec: https://html.spec.whatwg.org/multipage/interaction.html#attr-inputmode caniuse: input-inputmode compat_features: