[Webkit-unassigned] [Bug 255907] New: Submission of input element directionality for non-text, non-search type

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 25 00:49:54 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255907

            Bug ID: 255907
           Summary: Submission of input element directionality for
                    non-text, non-search type
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vhilla at mozilla.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230425/7999769b/attachment.htm>


More information about the webkit-unassigned mailing list