Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relnote(116): support dirname on textarea and input elements #28032

Merged
merged 5 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions files/en-us/mozilla/firefox/releases/116/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
bsmth marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down
10 changes: 10 additions & 0 deletions files/en-us/web/html/element/textarea/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [`<input>` 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:
bsmth marked this conversation as resolved.
Show resolved Hide resolved

```html
<textarea cols="90" name="info" dirname="info.dir"></textarea>
bsmth marked this conversation as resolved.
Show resolved Hide resolved
```
bsmth marked this conversation as resolved.
Show resolved Hide resolved

- `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`
Expand Down