Bug 97085
Summary: | Input required not working | ||
---|---|---|---|
Product: | WebKit | Reporter: | James Brooks <ukjbrooks> |
Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, jonlee, m.kurz+webkitbugs, paulirish, tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
James Brooks
I was testing Modernizr.input.required earlier in Safari which returned true, even though it's unsupported in Safari. This bug has been confirmed by Paul Irish in Safari 5.1 (https://github.com/Modernizr/Modernizr/issues/697)
I believe Chrome has this built in, but Safari is totally unsupported - http://jsbin.com/upokin/1/
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
It's unclear from the linked report what the WebKit bug is here. What does Modernizr do that makes it arrive at the wrong conclusion?
Kent Tamura
(In reply to comment #0)
> I was testing Modernizr.input.required earlier in Safari which returned true, even though it's unsupported in Safari. This bug has been confirmed by Paul Irish in Safari 5.1 (https://github.com/Modernizr/Modernizr/issues/697)
This conversation is about interactive validation feature.
Safari supports the required attribute.
- <input required> correctly matches :invalid selector
- input.validity.valueMissing correctly returns true for <input required>
But form submission is not prevented because Safari has no interactive validation feature.
*** This bug has been marked as a duplicate of bug 59019 ***