Skip to content

Add inputmode global HTML attribute #2573

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion features/contenteditable.yml
Original file line number Diff line number Diff line change
@@ -5,5 +5,4 @@ caniuse: contenteditable
compat_features:
- html.global_attributes.contenteditable
- api.HTMLElement.contentEditable
- api.HTMLElement.inputMode
- api.HTMLElement.isContentEditable
32 changes: 9 additions & 23 deletions features/contenteditable.yml.dist
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions features/inputmode.yml
Original file line number Diff line number Diff line change
@@ -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 `<input>` 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:
- api.HTMLElement.inputMode
- html.global_attributes.inputmode
18 changes: 18 additions & 0 deletions features/inputmode.yml.dist
Original file line number Diff line number Diff line change
@@ -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