From 9c93f2813b94a27aa3a65f0e49295f94e689ff23 Mon Sep 17 00:00:00 2001 From: Vincent Hilla Date: Mon, 24 Jul 2023 10:26:08 +0200 Subject: [PATCH] Make dirname apply to hidden/tel/url/email inputs. See https://github.com/whatwg/html/pull/9490 --- files/en-us/web/html/element/input/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/html/element/input/index.md b/files/en-us/web/html/element/input/index.md index b65e6481c22d8ad..9c4dc987975e70a 100644 --- a/files/en-us/web/html/element/input/index.md +++ b/files/en-us/web/html/element/input/index.md @@ -324,7 +324,7 @@ Attributes for the `` 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 | @@ -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