Bug 80419

Summary: for select element: 'required' attribute is not respected on Safari, Harmattan
Product: WebKit Reporter: Joel Parks <joel.parks>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, dmikurube, joel.parks, jonlee, laszlo.gombos, m.kurz+webkitbugs
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Bug Depends on: 50380    
Bug Blocks:    
Attachments:
Description Flags
form with select element containing 'required' attribute for testing none

Description Joel Parks 2012-03-06 07:32:44 PST
Created attachment 130380 [details]
form with select element containing 'required' attribute for testing

Detected on Harmattan N9 and iPhone 4S and Safari 5.1.2 (7534.52.7) on Win7

STEPS LEADING TO PROBLEM AND OUTCOME: 
1. load attached file selectRequiredTesting.html
2. ensure that none of the options are marked in the select element
3. attempt to submit the form using the Submit button
4. ERROR: the form submission completes

EXPECTED OUTCOME:
The presence of the 'required' attribute on the select element in the
form should cause the browser to ensure that the 'value' of the select element
is defined before form submission.  Ideally it would abort the submit and
trigger an alert indicating the select element[s] with 'required' attribute set
and select 'value' undefined so that the user could correct the omission.

This feature is a lightweight method of enforcing user input rules and should
be supported as defined in the html5 specification:
http://dev.w3.org/html5/spec/Overview.html#attr-select-required
Comment 1 Joel Parks 2012-03-06 07:33:54 PST
works as expected on Chrome (and Firefox for that matter)
Comment 2 Alexey Proskuryakov 2014-09-08 23:29:17 PDT

*** This bug has been marked as a duplicate of bug 28649 ***