[Webkit-unassigned] [Bug 120038] input[type=date] with invalid date should return empty string for value IDL attribute instead of the default value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 12 14:55:19 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=120038
--- Comment #6 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
In following tests:
https://searchfox.org/wubkat/source/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html
Add following:
beginTest("undefined", "2012-02-01");
UIHelper.keyDown("\t"); // -> 02/[01]/2012
UIHelper.keyDown("downArrow"); // -> 02/[31]/2012
shouldBeEqualToString('input.value', ''); // 2012-02-31 is not a valid date.
-- I don't think we need to have these events fired, but if we do, we might need to tweak below.
shouldBe("changeEventsFired", "4");
shouldBe("inputEventsFired", "4");
_________________________
Still want to fix this bug but might be something over the weekend. Unless if someone wanna do it quickly.
____
What steps will reproduce the problem?
1. Open data:text/html,<input type=date value="2013-02-01" oninput="co.innerHTML=this.value"><pre id=co></pre>
2. Change the day field from "01" to "31"
3. Observe text below the date control
^ Credits to Chrome bug.
--
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/20230412/bb81bfa2/attachment.htm>
More information about the webkit-unassigned
mailing list