Skip to content

Commit

Permalink
Make dirname apply to hidden/tel/url/email inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhill committed Jul 24, 2023
1 parent d479333 commit 9c93f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/html/element/input/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ Attributes for the `<input>` element include the [global HTML attributes](/en-US
| [`autocomplete`](#autocomplete) | all except `checkbox`, `radio`, and buttons | Hint for form autofill feature |
| [`capture`](#capture) | `file` | Media capture input method in file upload controls |
| [`checked`](#checked) | `checkbox`, `radio` | Whether the command or control is checked |
| [`dirname`](#dirname) | `search`, `text` | Name of form field to use for sending the element's directionality in form submission |
| [`dirname`](#dirname) | `hidden`, `text`, `search`, `url`, `tel`, `email` | Name of form field to use for sending the element's directionality in form submission |
| [`disabled`](#disabled) | all | Whether the form control is disabled |
| [`form`](#form) | all | Associates the control with a form element |
| [`formaction`](#formaction) | `image`, `submit` | URL to use for form submission |
Expand Down Expand Up @@ -399,7 +399,7 @@ A few additional non-standard attributes are listed following the descriptions o
- `dirname`

- : Valid for `text` and `search` input types only, the `dirname` attribute enables the submission of the directionality of the element. When included, the form control will submit with two name/value pairs: the first being the [`name`](#name) and [`value`](#value), the second being the value of the `dirname` as the name with the value of `ltr` or `rtl` being set by the browser.
- : Valid for `hidden`, `text`, `search`, `url`, `tel` and `email` input types, the `dirname` attribute enables the submission of the directionality of the element. When included, the form control will submit with two name/value pairs: the first being the [`name`](#name) and [`value`](#value), the second being the value of the `dirname` as the name with the value of `ltr` or `rtl` being set by the browser.

```html
<form action="page.html" method="post">
Expand Down

0 comments on commit 9c93f28

Please sign in to comment.