Bug 255907 - Submission of input element directionality for non-text, non-search type
Summary: Submission of input element directionality for non-text, non-search type
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Other
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-25 00:49 PDT by Vincent Hilla
Modified: 2023-05-02 00:50 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Hilla 2023-04-25 00:49:54 PDT
Version: Epiphany Technology Preview 44.0-40-g6c7e4587d+

Problem:
The standard is somewhat obscure on submitting an input elements directionality for non-text, non-search types. Although, dirname does not apply to them, the standard currently does not specify how this should be enforced. With pull request 9207, this hopefully will change. Please feel free to provide input on this pull request.

See: 
https://github.com/whatwg/html/pull/9207
https://html.spec.whatwg.org/#submitting-element-directionality:-the-dirname-attribute

What steps will reproduce the problem?
(1) Create a html file with the following content
<form href="#">
<input type="hidden" name="hidden" dirname="hidden.dir" />
<input type="tel" name="tel" dirname="tel.dir" />
<input type="submit" />
</form>
(2) Open this file
(3) Press submit

What is the expected result?
I believe, if one strictly follows the standard, the URL should change to ...test.html?hidden=&hidden.dir=ltrtel=&tel.dir=ltr. After the pull request, it should change to ...test.html?hidden=&tel=

What happens instead?
The URL changes to ...test.html?hidden=&tel=&tel.dir=ltr
Comment 1 Radar WebKit Bug Importer 2023-05-02 00:50:17 PDT
<rdar://problem/108776213>