From 2e181c6c3c8263ad0e6d6e7b999dfef53eea896c Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Wed, 19 Jul 2023 21:27:24 +0200 Subject: [PATCH] relnote(116): support dirname on textarea and input elements (#28032) * relnote(116): support dirname on textarea and input elements * Update files/en-us/mozilla/firefox/releases/116/index.md Co-authored-by: Dipika Bhattacharya * Update files/en-us/web/html/element/textarea/index.md Co-authored-by: Dipika Bhattacharya * relnote(116): Remove example in description list * Update files/en-us/web/html/element/textarea/index.md --------- Co-authored-by: Dipika Bhattacharya --- files/en-us/mozilla/firefox/releases/116/index.md | 3 +++ files/en-us/web/html/element/textarea/index.md | 5 +++++ 2 files changed, 8 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..fa3f6e404cf67db 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#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 ### 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..f8039e0db46f43e 100644 --- a/files/en-us/web/html/element/textarea/index.md +++ b/files/en-us/web/html/element/textarea/index.md @@ -46,6 +46,11 @@ 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 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 `