From 7b121527c9a2d2d37b672ad038307a71e81a35e2 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Tue, 18 Jul 2023 16:21:48 +0200 Subject: [PATCH 1/5] relnote(116): support dirname on textarea and input elements --- files/en-us/mozilla/firefox/releases/116/index.md | 3 +++ files/en-us/web/html/element/textarea/index.md | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/files/en-us/mozilla/firefox/releases/116/index.md b/files/en-us/mozilla/firefox/releases/116/index.md index 74531991459de92..6aaeea6c43bcfce 100644 --- a/files/en-us/mozilla/firefox/releases/116/index.md +++ b/files/en-us/mozilla/firefox/releases/116/index.md @@ -14,6 +14,9 @@ This article provides information about the changes in Firefox 116 that affect d ### HTML +- The [`dirname`](/en-US/docs/Web/HTML/Element/input#htmlattrdefdirname) attribute is now supported on [`input`](/en-US/docs/Web/HTML/Element/input#dirname) and [`textarea`](/en-US/docs/Web/HTML/Element/textarea#dirname) elements. + This attribute allows for passing text directionality information (`ltr` or `rtl`) to the server during form submission ([Firefox bug 675943](https://bugzil.la/675943)). + #### Removals ### CSS diff --git a/files/en-us/web/html/element/textarea/index.md b/files/en-us/web/html/element/textarea/index.md index 697f8f4fe983764..1c85a63e10f433a 100644 --- a/files/en-us/web/html/element/textarea/index.md +++ b/files/en-us/web/html/element/textarea/index.md @@ -46,6 +46,16 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib - : This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified. - `cols` - : The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`. +- `dirname` + + - : This attribute is used to set the text directionality of the element in a similar fashion to the [`` element's `dirname` attribute](/en-US/docs/Web/HTML/Element/input#dirname). + The value is sent in the format `{elementName}.dir={value}` where `{value}` may be either `ltr` for left-to-right (default) or `rtl` for right-to-left. + The following element would send `info.dir=rtl` with form data if right-to-left text was entered into the field: + + ```html + + ``` + - `disabled` - : This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example {{ HTMLElement("fieldset") }}; if there is no containing element when the `disabled` attribute is set, the control is enabled. - `form` From 4dfd827d49a37136498d5f7517889f107f0763cd Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Wed, 19 Jul 2023 10:25:50 +0200 Subject: [PATCH 2/5] Update files/en-us/mozilla/firefox/releases/116/index.md Co-authored-by: Dipika Bhattacharya --- files/en-us/mozilla/firefox/releases/116/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/116/index.md b/files/en-us/mozilla/firefox/releases/116/index.md index 6aaeea6c43bcfce..fa3f6e404cf67db 100644 --- a/files/en-us/mozilla/firefox/releases/116/index.md +++ b/files/en-us/mozilla/firefox/releases/116/index.md @@ -14,7 +14,7 @@ This article provides information about the changes in Firefox 116 that affect d ### HTML -- The [`dirname`](/en-US/docs/Web/HTML/Element/input#htmlattrdefdirname) attribute is now supported on [`input`](/en-US/docs/Web/HTML/Element/input#dirname) and [`textarea`](/en-US/docs/Web/HTML/Element/textarea#dirname) elements. +- The [`dirname`](/en-US/docs/Web/HTML/Element/input#dirname) attribute is now supported on [`input`](/en-US/docs/Web/HTML/Element/input#dirname) and [`textarea`](/en-US/docs/Web/HTML/Element/textarea#dirname) elements. This attribute allows for passing text directionality information (`ltr` or `rtl`) to the server during form submission ([Firefox bug 675943](https://bugzil.la/675943)). #### Removals From e50bb18bf91c609cca97e545f4d7964f7f2c40a1 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Wed, 19 Jul 2023 10:29:52 +0200 Subject: [PATCH 3/5] Update files/en-us/web/html/element/textarea/index.md Co-authored-by: Dipika Bhattacharya --- files/en-us/web/html/element/textarea/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/html/element/textarea/index.md b/files/en-us/web/html/element/textarea/index.md index 1c85a63e10f433a..6ec8f0497ff9996 100644 --- a/files/en-us/web/html/element/textarea/index.md +++ b/files/en-us/web/html/element/textarea/index.md @@ -48,9 +48,9 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib - : The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`. - `dirname` - - : This attribute is used to set the text directionality of the element in a similar fashion to the [`` element's `dirname` attribute](/en-US/docs/Web/HTML/Element/input#dirname). - The value is sent in the format `{elementName}.dir={value}` where `{value}` may be either `ltr` for left-to-right (default) or `rtl` for right-to-left. - The following element would send `info.dir=rtl` with form data if right-to-left text was entered into the field: + - : This attribute is used to set the text directionality of the element in a manner similar to the [`dirname`](/en-US/docs/Web/HTML/Element/input#dirname) attribute of the `` element. Possible values include `ltr` for left-to-right and `rtl` for right-to-left. The default value is `ltr`. + The value of the attribute is sent in the format `{elementName}.dir={value}`, where `{elementName}` is the name of the `` element and `{value}` may be `ltr` or `rtl`. + The following element will send `info.dir=rtl` along with form data when text is entered into the form field: ```html From ec543ff4639f434252016929a952f0ad7796a84c Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Wed, 19 Jul 2023 10:32:00 +0200 Subject: [PATCH 4/5] relnote(116): Remove example in description list --- files/en-us/web/html/element/textarea/index.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/en-us/web/html/element/textarea/index.md b/files/en-us/web/html/element/textarea/index.md index 6ec8f0497ff9996..6b7c82fe7f67bb9 100644 --- a/files/en-us/web/html/element/textarea/index.md +++ b/files/en-us/web/html/element/textarea/index.md @@ -50,11 +50,6 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib - : This attribute is used to set the text directionality of the element in a manner similar to the [`dirname`](/en-US/docs/Web/HTML/Element/input#dirname) attribute of the `` element. Possible values include `ltr` for left-to-right and `rtl` for right-to-left. The default value is `ltr`. The value of the attribute is sent in the format `{elementName}.dir={value}`, where `{elementName}` is the name of the `` element and `{value}` may be `ltr` or `rtl`. - The following element will send `info.dir=rtl` along with form data when text is entered into the form field: - - ```html - - ``` - `disabled` - : This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example {{ HTMLElement("fieldset") }}; if there is no containing element when the `disabled` attribute is set, the control is enabled. From 081ea2be581e62747f6711bc99e5632f4c120c17 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Wed, 19 Jul 2023 10:34:11 +0200 Subject: [PATCH 5/5] Update files/en-us/web/html/element/textarea/index.md --- files/en-us/web/html/element/textarea/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/html/element/textarea/index.md b/files/en-us/web/html/element/textarea/index.md index 6b7c82fe7f67bb9..f8039e0db46f43e 100644 --- a/files/en-us/web/html/element/textarea/index.md +++ b/files/en-us/web/html/element/textarea/index.md @@ -49,7 +49,7 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib - `dirname` - : This attribute is used to set the text directionality of the element in a manner similar to the [`dirname`](/en-US/docs/Web/HTML/Element/input#dirname) attribute of the `` element. Possible values include `ltr` for left-to-right and `rtl` for right-to-left. The default value is `ltr`. - The value of the attribute is sent in the format `{elementName}.dir={value}`, where `{elementName}` is the name of the `` element and `{value}` may be `ltr` or `rtl`. + The value of the attribute is sent in the format `{elementName}.dir={value}`, where `{elementName}` is the name of the `