From 0c87d484ca9d178409fc75399faec981c10e6162 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:28:59 +0700 Subject: [PATCH] Add input features (#2044) Co-authored-by: Pete LePage Co-authored-by: Daniel D. Beck --- features/input-button.yml | 8 + features/input-button.yml.dist | 17 ++ features/input-checkbox.yml | 10 + features/input-checkbox.yml.dist | 43 ++++ features/input-color.yml | 9 + features/input-color.yml.dist | 14 ++ features/input-date-time.yml | 16 ++ features/input-date-time.yml.dist | 73 +++++++ features/input-email-tel-url.yml | 14 ++ features/input-email-tel-url.yml.dist | 54 +++++ features/input-file.yml | 9 + features/input-file.yml.dist | 42 ++++ features/input-hidden.yml | 8 + features/input-hidden.yml.dist | 17 ++ features/input-image.yml | 9 + features/input-image.yml.dist | 18 ++ features/input-number.yml | 20 ++ features/input-number.yml.dist | 70 +++++++ features/input-password.yml | 11 + features/input-password.yml.dist | 35 ++++ features/input-radio.yml | 8 + features/input-radio.yml.dist | 17 ++ features/input-range.yml | 13 ++ features/input-range.yml.dist | 53 +++++ features/input-reset.yml | 8 + features/input-reset.yml.dist | 17 ++ features/input-submit.yml | 8 + features/input-submit.yml.dist | 17 ++ features/{draft/html-elements => }/input.yml | 52 +---- .../{draft/html-elements => }/input.yml.dist | 197 ++---------------- 30 files changed, 658 insertions(+), 229 deletions(-) create mode 100644 features/input-button.yml create mode 100644 features/input-button.yml.dist create mode 100644 features/input-checkbox.yml create mode 100644 features/input-checkbox.yml.dist create mode 100644 features/input-color.yml create mode 100644 features/input-color.yml.dist create mode 100644 features/input-date-time.yml create mode 100644 features/input-date-time.yml.dist create mode 100644 features/input-email-tel-url.yml create mode 100644 features/input-email-tel-url.yml.dist create mode 100644 features/input-file.yml create mode 100644 features/input-file.yml.dist create mode 100644 features/input-hidden.yml create mode 100644 features/input-hidden.yml.dist create mode 100644 features/input-image.yml create mode 100644 features/input-image.yml.dist create mode 100644 features/input-number.yml create mode 100644 features/input-number.yml.dist create mode 100644 features/input-password.yml create mode 100644 features/input-password.yml.dist create mode 100644 features/input-radio.yml create mode 100644 features/input-radio.yml.dist create mode 100644 features/input-range.yml create mode 100644 features/input-range.yml.dist create mode 100644 features/input-reset.yml create mode 100644 features/input-reset.yml.dist create mode 100644 features/input-submit.yml create mode 100644 features/input-submit.yml.dist rename features/{draft/html-elements => }/input.yml (56%) rename features/{draft/html-elements => }/input.yml.dist (60%) diff --git a/features/input-button.yml b/features/input-button.yml new file mode 100644 index 00000000000..268d8b2f2bc --- /dev/null +++ b/features/input-button.yml @@ -0,0 +1,8 @@ +name: '' +description: The `` HTML element represents a button with programmable behavior, and which is inert by default. +spec: https://html.spec.whatwg.org/multipage/input.html#button-state-(type=button) +group: + - forms + - html-elements +compat_features: + - html.elements.input.type_button diff --git a/features/input-button.yml.dist b/features/input-button.yml.dist new file mode 100644 index 00000000000..2b840c092ee --- /dev/null +++ b/features/input-button.yml.dist @@ -0,0 +1,17 @@ +# Generated from: input-button.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: + - html.elements.input.type_button diff --git a/features/input-checkbox.yml b/features/input-checkbox.yml new file mode 100644 index 00000000000..aff736f367a --- /dev/null +++ b/features/input-checkbox.yml @@ -0,0 +1,10 @@ +name: '' +description: The `` HTML element represents a checkable box. +spec: https://html.spec.whatwg.org/multipage/input.html#checkbox-state-(type=checkbox) +group: + - forms + - html-elements +compat_features: + - api.HTMLInputElement.defaultChecked + - api.HTMLInputElement.indeterminate + - html.elements.input.type_checkbox diff --git a/features/input-checkbox.yml.dist b/features/input-checkbox.yml.dist new file mode 100644 index 00000000000..b8f194ba95a --- /dev/null +++ b/features/input-checkbox.yml.dist @@ -0,0 +1,43 @@ +# Generated from: input-checkbox.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: "3.6" + firefox_android: "4" + safari: "3" + 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.HTMLInputElement.defaultChecked + - html.elements.input.type_checkbox + + # ⬇️ 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: "3.6" + # firefox_android: "4" + # safari: "3" + # safari_ios: "1" + - api.HTMLInputElement.indeterminate diff --git a/features/input-color.yml b/features/input-color.yml new file mode 100644 index 00000000000..4c6e3146aee --- /dev/null +++ b/features/input-color.yml @@ -0,0 +1,9 @@ +name: '' +description: The `` HTML element displays a color picker, from which users can choose a color. +spec: https://html.spec.whatwg.org/multipage/input.html#color-state-(type=color) +group: + - forms + - html-elements +caniuse: input-color +compat_features: + - html.elements.input.type_color diff --git a/features/input-color.yml.dist b/features/input-color.yml.dist new file mode 100644 index 00000000000..3e109874032 --- /dev/null +++ b/features/input-color.yml.dist @@ -0,0 +1,14 @@ +# Generated from: input-color.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "20" + chrome_android: "25" + edge: "14" + firefox: "29" + safari: "12.1" + safari_ios: "12.2" +compat_features: + - html.elements.input.type_color diff --git a/features/input-date-time.yml b/features/input-date-time.yml new file mode 100644 index 00000000000..65815df28ae --- /dev/null +++ b/features/input-date-time.yml @@ -0,0 +1,16 @@ +name: Date and time types +description: The `` and `` HTML elements represent date and time pickers in a form. +spec: https://html.spec.whatwg.org/multipage/input.html#date-state-(type=date) +group: + - forms + - html-elements +status: + compute_from: html.elements.input.type_date +caniuse: input-datetime +compat_features: + - api.HTMLInputElement.valueAsDate + - html.elements.input.type_date + - html.elements.input.type_datetime-local + - html.elements.input.type_month + - html.elements.input.type_time + - html.elements.input.type_week diff --git a/features/input-date-time.yml.dist b/features/input-date-time.yml.dist new file mode 100644 index 00000000000..2526cb4f032 --- /dev/null +++ b/features/input-date-time.yml.dist @@ -0,0 +1,73 @@ +# Generated from: input-date-time.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2021-04-26 + baseline_high_date: 2023-10-26 + support: + chrome: "20" + chrome_android: "25" + edge: "12" + firefox: "57" + firefox_android: "57" + safari: "14.1" + safari_ios: "5" +compat_features: + # baseline: high + # baseline_low_date: 2017-11-28 + # baseline_high_date: 2020-05-28 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "57" + # firefox_android: "57" + # safari: "5" + # safari_ios: "4" + - api.HTMLInputElement.valueAsDate + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2021-04-26 + # baseline_high_date: 2023-10-26 + # support: + # chrome: "20" + # chrome_android: "25" + # edge: "12" + # firefox: "57" + # firefox_android: "57" + # safari: "14.1" + # safari_ios: "5" + - html.elements.input.type_date + - html.elements.input.type_time + + # baseline: high + # baseline_low_date: 2021-10-05 + # baseline_high_date: 2024-04-05 + # support: + # chrome: "20" + # chrome_android: "25" + # edge: "12" + # firefox: "93" + # firefox_android: "93" + # safari: "14.1" + # safari_ios: "5" + - html.elements.input.type_datetime-local + + # baseline: false + # support: + # chrome: "20" + # chrome_android: "25" + # edge: "12" + # firefox_android: "18" + # safari_ios: ≤11.3 + - html.elements.input.type_month + + # baseline: false + # support: + # chrome: "20" + # chrome_android: "25" + # edge: "12" + # firefox_android: "18" + - html.elements.input.type_week diff --git a/features/input-email-tel-url.yml b/features/input-email-tel-url.yml new file mode 100644 index 00000000000..51486567744 --- /dev/null +++ b/features/input-email-tel-url.yml @@ -0,0 +1,14 @@ +name: Email, telephone, and URL types +description: The ``, ``, and `` HTML elements represent email address, telephone number, and URL fields in a form. +spec: + - https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email) + - https://html.spec.whatwg.org/multipage/input.html#telephone-state-(type=tel) + - https://html.spec.whatwg.org/multipage/input.html#url-state-(type=url) +group: + - forms + - html-elements +caniuse: input-email-tel-url +compat_features: + - html.elements.input.type_email + - html.elements.input.type_tel + - html.elements.input.type_url diff --git a/features/input-email-tel-url.yml.dist b/features/input-email-tel-url.yml.dist new file mode 100644 index 00000000000..0c6d19ee796 --- /dev/null +++ b/features/input-email-tel-url.yml.dist @@ -0,0 +1,54 @@ +# Generated from: input-email-tel-url.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: "5" + chrome_android: "18" + edge: "12" + firefox: "4" + firefox_android: "4" + safari: "5" + safari_ios: "3" +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" + - html.elements.input.type_url + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "3" + # chrome_android: "18" + # edge: "12" + # firefox: "4" + # firefox_android: "4" + # safari: "4" + # safari_ios: "3" + - html.elements.input.type_tel + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "5" + # safari_ios: "3" + - html.elements.input.type_email diff --git a/features/input-file.yml b/features/input-file.yml new file mode 100644 index 00000000000..1e5b7ce7c13 --- /dev/null +++ b/features/input-file.yml @@ -0,0 +1,9 @@ +name: '' +description: The `` HTML element represents a field used to upload a file. +spec: https://html.spec.whatwg.org/multipage/input.html#file-upload-state-(type=file) +group: + - forms + - html-elements +compat_features: + - api.HTMLInputElement.files + - html.elements.input.type_file diff --git a/features/input-file.yml.dist b/features/input-file.yml.dist new file mode 100644 index 00000000000..c0d2be82012 --- /dev/null +++ b/features/input-file.yml.dist @@ -0,0 +1,42 @@ +# Generated from: input-file.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: "2" + chrome_android: "18" + edge: "12" + firefox: "3" + firefox_android: "4" + safari: "4" + safari_ios: "3" +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" + - html.elements.input.type_file + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "2" + # chrome_android: "18" + # edge: "12" + # firefox: "3" + # firefox_android: "4" + # safari: "4" + # safari_ios: "3" + - api.HTMLInputElement.files diff --git a/features/input-hidden.yml b/features/input-hidden.yml new file mode 100644 index 00000000000..77c8c9175d8 --- /dev/null +++ b/features/input-hidden.yml @@ -0,0 +1,8 @@ +name: '' +description: The `` HTML element represents a form field that is not displayed visually on the page. +spec: https://html.spec.whatwg.org/multipage/input.html#hidden-state-(type=hidden) +group: + - forms + - html-elements +compat_features: + - html.elements.input.type_hidden diff --git a/features/input-hidden.yml.dist b/features/input-hidden.yml.dist new file mode 100644 index 00000000000..bf4767ddac8 --- /dev/null +++ b/features/input-hidden.yml.dist @@ -0,0 +1,17 @@ +# Generated from: input-hidden.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: + - html.elements.input.type_hidden diff --git a/features/input-image.yml b/features/input-image.yml new file mode 100644 index 00000000000..17fe0c12b1d --- /dev/null +++ b/features/input-image.yml @@ -0,0 +1,9 @@ +name: '' +description: The `` HTML element represents an image which can be used to submit a form. +spec: https://html.spec.whatwg.org/multipage/input.html#image-button-state-(type=image) +group: + - forms + - html-elements +compat_features: + - api.HTMLInputElement.src + - html.elements.input.type_image diff --git a/features/input-image.yml.dist b/features/input-image.yml.dist new file mode 100644 index 00000000000..af58d32ed10 --- /dev/null +++ b/features/input-image.yml.dist @@ -0,0 +1,18 @@ +# Generated from: input-image.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.HTMLInputElement.src + - html.elements.input.type_image diff --git a/features/input-number.yml b/features/input-number.yml new file mode 100644 index 00000000000..1bde460c86d --- /dev/null +++ b/features/input-number.yml @@ -0,0 +1,20 @@ +name: '' +description: The `` HTML element restricts input in the field to numeric data. +spec: https://html.spec.whatwg.org/multipage/input.html#number-state-(type=number) +group: + - forms + - html-elements +caniuse: input-number +status: + compute_from: html.elements.input.type_number +compat_features: + - api.HTMLInputElement.valueAsNumber + - api.HTMLInputElement.max + - api.HTMLInputElement.min + - api.HTMLInputElement.step + - api.HTMLInputElement.stepDown + - api.HTMLInputElement.stepUp + - html.elements.input.max + - html.elements.input.min + - html.elements.input.step + - html.elements.input.type_number diff --git a/features/input-number.yml.dist b/features/input-number.yml.dist new file mode 100644 index 00000000000..165850e03ff --- /dev/null +++ b/features/input-number.yml.dist @@ -0,0 +1,70 @@ +# Generated from: input-number.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: "29" + firefox_android: "29" + safari: "5.1" + safari_ios: "5" +compat_features: + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "4" + # chrome_android: "18" + # edge: "12" + # firefox: "16" + # firefox_android: "16" + # safari: "5" + # safari_ios: "4" + - api.HTMLInputElement.max + - api.HTMLInputElement.min + - html.elements.input.max + - html.elements.input.min + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "16" + # firefox_android: "16" + # safari: "5" + # safari_ios: "4" + - api.HTMLInputElement.step + - api.HTMLInputElement.valueAsNumber + - html.elements.input.step + + # ⬇️ 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: "29" + # firefox_android: "29" + # safari: "5.1" + # safari_ios: "5" + - html.elements.input.type_number + + # baseline: false + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # safari: "5" + # safari_ios: "4" + - api.HTMLInputElement.stepDown + - api.HTMLInputElement.stepUp diff --git a/features/input-password.yml b/features/input-password.yml new file mode 100644 index 00000000000..9728f2a311f --- /dev/null +++ b/features/input-password.yml @@ -0,0 +1,11 @@ +name: '' +description: The `` HTML element represents a field for users to enter passwords while ensuring the typed characters are hidden from view, typically replaced by asterisks. +spec: https://html.spec.whatwg.org/multipage/input.html#password-state-(type=password) +group: + - forms + - html-elements +status: + compute_from: html.elements.input.type_password +compat_features: + - html.elements.input.type_password + - html.elements.input.type_password.insecure_login_handling diff --git a/features/input-password.yml.dist b/features/input-password.yml.dist new file mode 100644 index 00000000000..c3ab3406fab --- /dev/null +++ b/features/input-password.yml.dist @@ -0,0 +1,35 @@ +# Generated from: input-password.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: + # ⬇️ 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: "1" + # safari_ios: "1" + - html.elements.input.type_password + + # baseline: false + # support: + # firefox: "52" + # firefox_android: "52" + - html.elements.input.type_password.insecure_login_handling diff --git a/features/input-radio.yml b/features/input-radio.yml new file mode 100644 index 00000000000..54a02b74e03 --- /dev/null +++ b/features/input-radio.yml @@ -0,0 +1,8 @@ +name: '' +description: The `` HTML element represents a button which can be selected to the exclusion of others, or as one of multiple selections in a group. +spec: https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio) +group: + - forms + - html-elements +compat_features: + - html.elements.input.type_radio diff --git a/features/input-radio.yml.dist b/features/input-radio.yml.dist new file mode 100644 index 00000000000..b3a580f5dc8 --- /dev/null +++ b/features/input-radio.yml.dist @@ -0,0 +1,17 @@ +# Generated from: input-radio.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: + - html.elements.input.type_radio diff --git a/features/input-range.yml b/features/input-range.yml new file mode 100644 index 00000000000..9ed2e394cfe --- /dev/null +++ b/features/input-range.yml @@ -0,0 +1,13 @@ +name: '' +description: The `` element allows the user to choose a value using a slider widget. +spec: https://html.spec.whatwg.org/multipage/input.html#range-state-(type=range) +group: + - forms + - html-elements +caniuse: input-range +status: + compute_from: html.elements.input.type_range +compat_features: + - html.elements.input.type_range + - html.elements.input.type_range.vertical_orientation + - html.elements.input.type_range.tick_marks diff --git a/features/input-range.yml.dist b/features/input-range.yml.dist new file mode 100644 index 00000000000..03e22d0b829 --- /dev/null +++ b/features/input-range.yml.dist @@ -0,0 +1,53 @@ +# Generated from: input-range.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2017-03-16 + baseline_high_date: 2019-09-16 + support: + chrome: "4" + chrome_android: "57" + edge: "12" + firefox: "23" + firefox_android: "52" + safari: "3.1" + safari_ios: "5" +compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2017-03-16 + # baseline_high_date: 2019-09-16 + # support: + # chrome: "4" + # chrome_android: "57" + # edge: "12" + # firefox: "23" + # firefox_android: "52" + # safari: "3.1" + # safari_ios: "5" + - html.elements.input.type_range + + # baseline: low + # baseline_low_date: 2023-01-17 + # support: + # chrome: ≤67 + # chrome_android: "67" + # edge: ≤79 + # firefox: "109" + # firefox_android: "109" + # safari: "12.1" + # safari_ios: "12.2" + - html.elements.input.type_range.tick_marks + + # baseline: low + # baseline_low_date: 2024-04-16 + # support: + # chrome: "124" + # chrome_android: "124" + # edge: "12" + # firefox: "120" + # firefox_android: "120" + # safari: "16.5" + # safari_ios: "16.5" + - html.elements.input.type_range.vertical_orientation diff --git a/features/input-reset.yml b/features/input-reset.yml new file mode 100644 index 00000000000..db3ac1b91ed --- /dev/null +++ b/features/input-reset.yml @@ -0,0 +1,8 @@ +name: '' +description: The `` HTML element is rendered as a button, and resets all inputs in the form to their initial values. +spec: https://html.spec.whatwg.org/multipage/input.html#reset-button-state-(type=reset) +group: + - forms + - html-elements +compat_features: + - html.elements.input.type_reset diff --git a/features/input-reset.yml.dist b/features/input-reset.yml.dist new file mode 100644 index 00000000000..c1197e74274 --- /dev/null +++ b/features/input-reset.yml.dist @@ -0,0 +1,17 @@ +# Generated from: input-reset.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: + - html.elements.input.type_reset diff --git a/features/input-submit.yml b/features/input-submit.yml new file mode 100644 index 00000000000..e11e55685b6 --- /dev/null +++ b/features/input-submit.yml @@ -0,0 +1,8 @@ +name: '' +description: The `` HTML element submits its associated `
`. +spec: https://html.spec.whatwg.org/multipage/input.html#submit-button-state-(type=submit) +group: + - forms + - html-elements +compat_features: + - html.elements.input.type_submit diff --git a/features/input-submit.yml.dist b/features/input-submit.yml.dist new file mode 100644 index 00000000000..e260b39cd62 --- /dev/null +++ b/features/input-submit.yml.dist @@ -0,0 +1,17 @@ +# Generated from: input-submit.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: + - html.elements.input.type_submit diff --git a/features/draft/html-elements/input.yml b/features/input.yml similarity index 56% rename from features/draft/html-elements/input.yml rename to features/input.yml index a06ad0700e7..3ec8b5345b7 100644 --- a/features/draft/html-elements/input.yml +++ b/features/input.yml @@ -1,8 +1,11 @@ -draft_date: 2024-06-05 name: -description: The `` element TODO. +description: The `` HTML element allows the user to input information into a form. By default, an `` element is a text input. spec: https://html.spec.whatwg.org/multipage/input.html#the-input-element -group: forms +group: + - forms + - html-elements +status: + compute_from: html.elements.input compat_features: - api.HTMLInputElement - api.HTMLInputElement.accept @@ -10,10 +13,8 @@ compat_features: - api.HTMLInputElement.autocomplete - api.HTMLInputElement.cancel_event - api.HTMLInputElement.checked - - api.HTMLInputElement.defaultChecked - api.HTMLInputElement.defaultValue - api.HTMLInputElement.disabled - - api.HTMLInputElement.files - api.HTMLInputElement.form - api.HTMLInputElement.formAction - api.HTMLInputElement.formEnctype @@ -21,13 +22,10 @@ compat_features: - api.HTMLInputElement.formNoValidate - api.HTMLInputElement.formTarget - api.HTMLInputElement.height - - api.HTMLInputElement.indeterminate - api.HTMLInputElement.invalid_event - api.HTMLInputElement.labels - api.HTMLInputElement.list - - api.HTMLInputElement.max - api.HTMLInputElement.maxLength - - api.HTMLInputElement.min - api.HTMLInputElement.minLength - api.HTMLInputElement.multiple - api.HTMLInputElement.name @@ -43,14 +41,8 @@ compat_features: - api.HTMLInputElement.setRangeText - api.HTMLInputElement.setSelectionRange - api.HTMLInputElement.size - - api.HTMLInputElement.src - - api.HTMLInputElement.step - - api.HTMLInputElement.stepDown - - api.HTMLInputElement.stepUp - api.HTMLInputElement.type - api.HTMLInputElement.value - - api.HTMLInputElement.valueAsDate - - api.HTMLInputElement.valueAsNumber - api.HTMLInputElement.width - html.elements.input - html.elements.input.accept @@ -64,9 +56,7 @@ compat_features: - html.elements.input.formnovalidate - html.elements.input.formtarget - html.elements.input.list - - html.elements.input.max - html.elements.input.maxlength - - html.elements.input.min - html.elements.input.minlength - html.elements.input.multiple - html.elements.input.name @@ -74,34 +64,6 @@ compat_features: - html.elements.input.placeholder - html.elements.input.readonly - html.elements.input.required - # Excluded because of a non-real value - # - html.elements.input.size + - html.elements.input.size - html.elements.input.src - - html.elements.input.step - - html.elements.input.type_button - - html.elements.input.type_checkbox - - html.elements.input.type_color - - html.elements.input.type_date - - html.elements.input.type_datetime-local - - html.elements.input.type_email - - html.elements.input.type_file - - html.elements.input.type_hidden - - html.elements.input.type_image - # Excluded because of a non-real value - # - html.elements.input.type_month - - html.elements.input.type_number - - html.elements.input.type_password - - html.elements.input.type_password.insecure_login_handling - - html.elements.input.type_radio - - html.elements.input.type_range - # Excluded because of a non-real value - # - html.elements.input.type_range.tick_marks - # - html.elements.input.type_range.vertical_orientation - - html.elements.input.type_reset - - html.elements.input.type_submit - # Excluded because of a non-real value - # - html.elements.input.type_tel - html.elements.input.type_text - - html.elements.input.type_time - - html.elements.input.type_url - - html.elements.input.type_week diff --git a/features/draft/html-elements/input.yml.dist b/features/input.yml.dist similarity index 60% rename from features/draft/html-elements/input.yml.dist rename to features/input.yml.dist index fee5b5c7702..0a5c76e0dc6 100644 --- a/features/draft/html-elements/input.yml.dist +++ b/features/input.yml.dist @@ -2,9 +2,19 @@ # Do not edit this file by hand. Edit the source file instead! status: - baseline: false - support: {} + 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: + # ⬇️ Same status as overall feature ⬇️ # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -20,7 +30,6 @@ compat_features: - api.HTMLInputElement.accept - api.HTMLInputElement.alt - api.HTMLInputElement.checked - - api.HTMLInputElement.defaultChecked - api.HTMLInputElement.defaultValue - api.HTMLInputElement.disabled - api.HTMLInputElement.form @@ -29,7 +38,6 @@ compat_features: - api.HTMLInputElement.readOnly - api.HTMLInputElement.select - api.HTMLInputElement.size - - api.HTMLInputElement.src - api.HTMLInputElement.type - api.HTMLInputElement.value - html.elements.input @@ -41,18 +49,9 @@ compat_features: - html.elements.input.maxlength - html.elements.input.name - html.elements.input.readonly + - html.elements.input.size - html.elements.input.src - - html.elements.input.type_button - - html.elements.input.type_checkbox - - html.elements.input.type_file - - html.elements.input.type_hidden - - html.elements.input.type_image - - html.elements.input.type_password - - html.elements.input.type_radio - - html.elements.input.type_reset - - html.elements.input.type_submit - html.elements.input.type_text - - html.elements.input.type_url # baseline: high # baseline_low_date: 2015-07-29 @@ -81,19 +80,6 @@ compat_features: # safari_ios: "1" - api.HTMLInputElement.setSelectionRange - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "1" - # chrome_android: "18" - # edge: "12" - # firefox: "3.6" - # firefox_android: "4" - # safari: "3" - # safari_ios: "1" - - api.HTMLInputElement.indeterminate - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -107,19 +93,6 @@ compat_features: # safari_ios: "1" - api.HTMLInputElement.select_event - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "2" - # chrome_android: "18" - # edge: "12" - # firefox: "3" - # firefox_android: "4" - # safari: "4" - # safari_ios: "3" - - api.HTMLInputElement.files - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -166,63 +139,6 @@ compat_features: - html.elements.input.pattern - html.elements.input.required - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "4" - # chrome_android: "18" - # edge: "12" - # firefox: "16" - # firefox_android: "16" - # safari: "5" - # safari_ios: "4" - - api.HTMLInputElement.max - - api.HTMLInputElement.min - - html.elements.input.max - - html.elements.input.min - - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # firefox: "1" - # firefox_android: "4" - # safari: "5" - # safari_ios: "3" - - html.elements.input.type_email - - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # firefox: "16" - # firefox_android: "16" - # safari: "5" - # safari_ios: "4" - - api.HTMLInputElement.step - - api.HTMLInputElement.valueAsNumber - - html.elements.input.step - - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "7" - # chrome_android: "18" - # edge: "12" - # firefox: "29" - # firefox_android: "29" - # safari: "5.1" - # safari_ios: "5" - - html.elements.input.type_number - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -283,32 +199,6 @@ compat_features: # safari_ios: "6" - api.HTMLInputElement.selectionDirection - # baseline: high - # baseline_low_date: 2017-03-16 - # baseline_high_date: 2019-09-16 - # support: - # chrome: "4" - # chrome_android: "57" - # edge: "12" - # firefox: "23" - # firefox_android: "52" - # safari: "3.1" - # safari_ios: "5" - - html.elements.input.type_range - - # baseline: high - # baseline_low_date: 2017-11-28 - # baseline_high_date: 2020-05-28 - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # firefox: "57" - # firefox_android: "57" - # safari: "5" - # safari_ios: "4" - - api.HTMLInputElement.valueAsDate - # baseline: high # baseline_low_date: 2018-04-30 # baseline_high_date: 2020-10-30 @@ -376,33 +266,6 @@ compat_features: # safari_ios: "7" - api.HTMLInputElement.setRangeText - # baseline: high - # baseline_low_date: 2021-04-26 - # baseline_high_date: 2023-10-26 - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "12" - # firefox: "57" - # firefox_android: "57" - # safari: "14.1" - # safari_ios: "5" - - html.elements.input.type_date - - html.elements.input.type_time - - # baseline: high - # baseline_low_date: 2021-10-05 - # baseline_high_date: 2024-04-05 - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "12" - # firefox: "93" - # firefox_android: "93" - # safari: "14.1" - # safari_ios: "5" - - html.elements.input.type_datetime-local - # baseline: low # baseline_low_date: 2023-05-05 # support: @@ -414,37 +277,3 @@ compat_features: # safari: "16.4" # safari_ios: "16.4" - api.HTMLInputElement.cancel_event - - # baseline: false - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "14" - # firefox: "29" - # safari: "12.1" - # safari_ios: "12.2" - - html.elements.input.type_color - - # baseline: false - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # safari: "5" - # safari_ios: "4" - - api.HTMLInputElement.stepDown - - api.HTMLInputElement.stepUp - - # baseline: false - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "12" - # firefox_android: "18" - - html.elements.input.type_week - - # baseline: false - # support: - # firefox: "52" - # firefox_android: "52" - - html.elements.input.type_password.insecure_login_handling