Blocking of implicit form submission ignores type="date" and type="time"
Categories
(Core :: DOM: Forms, defect)
Tracking
()
People
(Reporter: Ilias.Dewachter, Unassigned)
References
()
Details
Attachments
(1 file)
|
1.38 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
I've created a simple form as following:
<form>
<input type="date"/>
<input type="text"/>
</form>
When focussing on the text input and pressing enter, the form submits.
More advanced repro can be found as an attachment or here: https://stackblitz.com/edit/html-basics-qoxb4q?file=index.html
Actual results:
The form submitted.
Expected results:
The form should not submit. There are two elements that block implicit submission on the form and thus it should not submit without a <button type="submit"> tag.
https://www.w3.org/TR/2018/SPSD-html5-20180327/forms.html#implicit-submission
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Forms' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 years ago
|
||
Set to S3 given that all other browsers behave the same at the moment.
| Reporter | ||
Comment 3•4 years ago
|
||
I've also reported this issue to Chromium where they're considering to change the spec instead of updating browser behavior to prevent breaking changes (all browsers behave the same way).
The issue can be found here: https://bugs.chromium.org/p/chromium/issues/detail?id=1305986
| Reporter | ||
Comment 4•4 years ago
|
||
Report the spec issue here: https://github.com/whatwg/html/issues/7730
Updated•3 years ago
|
Updated•3 years ago
|
Description
•