Skip to content

Commit

Permalink
Add inputmode global HTML attribute (#2573)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Brosset <[email protected]>
  • Loading branch information
ddbeck and captainbrosset authored Feb 6, 2025
1 parent 41aef47 commit b44c75c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
1 change: 0 additions & 1 deletion features/contenteditable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit b44c75c

Please sign in to comment.