From d0da8a01fb9e230be9286259a6cd2ed941b421da Mon Sep 17 00:00:00 2001 From: zcorpan Date: Wed, 5 Jul 2023 14:49:29 +0200 Subject: [PATCH 1/2] Make dirname apply to hidden/tel/url/email inputs Fixes #9225 --- source | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/source b/source index cb6c42271a2..433afcb9e46 100644 --- a/source +++ b/source @@ -46237,11 +46237,11 @@ interface HTMLInputElement : HTMLElement { dirname - · + Yes Yes - · - · + Yes + Yes · · @@ -47542,8 +47542,9 @@ interface HTMLInputElement : HTMLElement {

The - autocomplete - content attribute applies to this element.

+ autocomplete and + dirname + content attributes apply to this element.

The value @@ -47555,7 +47556,6 @@ interface HTMLInputElement : HTMLElement { accept, alt, checked, - dirname, formaction, formenctype, formmethod, @@ -47772,6 +47772,7 @@ interface HTMLInputElement : HTMLElement {

The following common input element content attributes, IDL attributes, and methods apply to the element: autocomplete, + dirname, list, maxlength, minlength, @@ -47800,7 +47801,6 @@ interface HTMLInputElement : HTMLElement { accept, alt, checked, - dirname, formaction, formenctype, formmethod, @@ -47877,6 +47877,7 @@ interface HTMLInputElement : HTMLElement {

The following common input element content attributes, IDL attributes, and methods apply to the element: autocomplete, + dirname, list, maxlength, minlength, @@ -47905,7 +47906,6 @@ interface HTMLInputElement : HTMLElement { accept, alt, checked, - dirname, formaction, formenctype, formmethod, @@ -48144,6 +48144,7 @@ ldh-str = < as defined in apply to the element: autocomplete, + dirname, list, maxlength, minlength, @@ -48176,7 +48177,6 @@ ldh-str = < as defined in accept, alt, checked, - dirname, formaction, formenctype, formmethod, @@ -55336,11 +55336,10 @@ form.method === input; // => true

Submitting element directionality: the dirname attribute
-

The dirname attribute on a form control element enables the - submission of the directionality of the element, and gives the name of the control - that contains this value during form submission. If such an attribute is specified, - its value must not be the empty string.

+

The dirname + attribute on a form control element enables the submission of the directionality of + the element, and gives the name of the control that contains this value during form + submission. If such an attribute is specified, its value must not be the empty string.

@@ -59313,8 +59312,11 @@ fur

If the element has a dirname attribute, that attribute's value is not the empty string, and the element is either a textarea element or an input element whose type - attribute is in the Text or Search state, then:

+ attribute is in the Hidden, + Text, Search, Telephone, URL, + or Email state, then:

  1. Let dirname be the value of the element's

    This can even include updating the dir attribute of textarea elements or input elements whose type attribute is in either the Text state or the Search state, if the persisted state includes the + data-x="attr-input-type">type attribute is in the Text, Search, + URL, Telephone, or Email state, if the persisted state includes the directionality of user input in such controls.

    Restoring the value of form controls as part of this process does not fire any From ef514903ac4161a8922597f8e0bcef8360d28c20 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 24 Jul 2023 10:47:27 +0200 Subject: [PATCH 2/2] Telephone before URL --- source | 99 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/source b/source index 433afcb9e46..c5a67de4be7 100644 --- a/source +++ b/source @@ -46115,8 +46115,8 @@ interface HTMLInputElement : HTMLElement { Hidden Text, Search - URL, - Telephone + Telephone, + URL Email Password Date, @@ -46144,7 +46144,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46168,7 +46168,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46192,7 +46192,7 @@ interface HTMLInputElement : HTMLElement { Yes Yes - Yes + Yes Yes Yes Yes @@ -46216,7 +46216,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46240,7 +46240,7 @@ interface HTMLInputElement : HTMLElement { Yes Yes - Yes + Yes Yes · · @@ -46264,7 +46264,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46288,7 +46288,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46312,7 +46312,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46336,7 +46336,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46360,7 +46360,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46384,7 +46384,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46408,7 +46408,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes · Yes @@ -46432,7 +46432,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -46456,7 +46456,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes · @@ -46480,7 +46480,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -46504,7 +46504,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes · @@ -46528,7 +46528,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · Yes · · @@ -46552,7 +46552,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes · @@ -46576,7 +46576,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes · @@ -46600,7 +46600,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46624,7 +46624,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46648,7 +46648,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes Yes @@ -46672,7 +46672,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes Yes @@ -46696,7 +46696,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes · @@ -46720,7 +46720,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46744,7 +46744,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -46768,7 +46768,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46796,7 +46796,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46820,7 +46820,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · · @@ -46844,7 +46844,7 @@ interface HTMLInputElement : HTMLElement { default value - value + value value value value @@ -46868,7 +46868,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -46892,7 +46892,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -46916,7 +46916,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes · Yes @@ -46940,7 +46940,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes† Yes Yes† @@ -46964,7 +46964,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes · Yes · @@ -46988,7 +46988,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes · Yes · @@ -47012,7 +47012,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes · Yes · @@ -47036,7 +47036,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes · Yes · @@ -47060,7 +47060,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes · Yes · @@ -47084,7 +47084,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -47108,7 +47108,7 @@ interface HTMLInputElement : HTMLElement { · · - · + · · · Yes @@ -47136,7 +47136,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes Yes @@ -47160,7 +47160,7 @@ interface HTMLInputElement : HTMLElement { · Yes - Yes + Yes Yes Yes Yes @@ -58685,8 +58685,8 @@ fur data-x="attr-input-type">type attribute is in one of the following states: Text, Search, - URL, Telephone, + URL, Email, Password, Date, @@ -99788,10 +99788,9 @@ location.href = '#foo'; of textarea elements or input elements whose type attribute is in the Text, Search, - URL, Telephone, or Email state, if the persisted state includes the - directionality of user input in such controls.

    + Telephone, URL, or Email + state, if the persisted state includes the directionality of user input in such controls.

    Restoring the value of form controls as part of this process does not fire any input or change events, but