Bug 97085 - Input required not working
Summary: Input required not working
Status: RESOLVED DUPLICATE of bug 59019
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-19 02:03 PDT by James Brooks
Modified: 2016-06-24 08:45 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Brooks 2012-09-19 02:03:48 PDT
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/
Comment 1 Alexey Proskuryakov 2012-09-19 11:18:07 PDT
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?
Comment 2 Kent Tamura 2012-09-19 16:29:04 PDT
(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 ***