[Webkit-unassigned] [Bug 269641] checkValidity() of input[type="date"] returns an unexpected result when an entered value is replaced by an empty string.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 2 03:29:08 PDT 2024


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

Anne van Kesteren <annevk at annevk.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akeerthi at apple.com,
                   |                            |annevk at annevk.nl,
                   |                            |ntim at apple.com

--- Comment #2 from Anne van Kesteren <annevk at annevk.nl> ---
I can also reproduce this for other form controls:

https://software.hixie.ch/utilities/js/live-dom-viewer/?%3Cinput%20type%3Dtime%3E%0A%3Cscript%3E%0Ainput%20%3D%20document.querySelector(%27input%27)%0Ainput.value%20%3D%20%2212%3A12%22%3B%0Ainput.value%20%3D%20%22%22%3B%0Aw(input.checkValidity())%0A%3C%2Fscript%3E

It seems that the problem is that as soon as a value is set some state gets initialized that is not reset when the value is "removed" again.

-- 
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/20240902/0fc70ad8/attachment.htm>


More information about the webkit-unassigned mailing list