New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<input type="week"> does not clamp its value #4591
Conversation
This test assumed that <input type="week"> cannot have its value set to a value that's outside the interval established by its min/max attributes, which is incorrect. <input type="range"> does perform that sort of clamping, using "When the element is suffering from an underflow/overflow" hooks: https://html.spec.whatwg.org/multipage/forms.html#range-state-(type=range):suffering-from-an-underflow But <input type="week">'s section doesn't setup any such hooks AFAICT, nor does its value sanitization algorithm implement any clamping: https://html.spec.whatwg.org/multipage/forms.html#week-state-(type=week):value-sanitization-algorithm
Firefox (nightly channel)Testing web-platform-tests at revision 4c46531 All results/html/semantics/forms/the-input-element/week.html
|
Chrome (unstable channel)Testing web-platform-tests at revision 4c46531 All results/html/semantics/forms/the-input-element/week.html
|
Since @wpt-pr-bot seems to have dropped this PR on the floor for some reason... Notifying @Ms2ger, @ayg, @gsnedders, @jdm, @jgraham, @sideshowbarker, @zcorpan, and @zqzhang. |
For the same reasons as #4591 (just s/week/date/g), <input type="date"> does not clamp its value based on its range limitations from its `min`/`max` attributes. This test incorrectly expected <input type="date"> to perform such clamping.
For the same reasons as #4591 (just s/week/date/g), <input type="date"> does not clamp its value based on its range limitations from its `min`/`max` attributes. This test incorrectly expected <input type="date"> to perform such clamping.
This test assumed that
<input type="week">
cannot have its value set to a value that's outside the interval established by its min/max attributes, which is incorrect.<input type="range">
does perform that sort of clamping, using "When the element is suffering from an underflow/overflow" hooks:https://html.spec.whatwg.org/multipage/forms.html#range-state-(type=range):suffering-from-an-underflow
But
<input type="week">
's section doesn't setup any such hooks AFAICT, nor does its value sanitization algorithm implement any clamping:https://html.spec.whatwg.org/multipage/forms.html#week-state-(type=week):value-sanitization-algorithm
X-Ref: #4582