<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>80419</bug_id>
          
          <creation_ts>2012-03-06 07:32:44 -0800</creation_ts>
          <short_desc>for select element: &apos;required&apos; attribute is not respected on Safari, Harmattan</short_desc>
          <delta_ts>2016-06-24 08:45:41 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>28649</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>50380</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joel Parks">joel.parks</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dmikurube</cc>
    
    <cc>joel.parks</cc>
    
    <cc>jonlee</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>m.kurz+webkitbugs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>571845</commentid>
    <comment_count>0</comment_count>
      <attachid>130380</attachid>
    <who name="Joel Parks">joel.parks</who>
    <bug_when>2012-03-06 07:32:44 -0800</bug_when>
    <thetext>Created attachment 130380
form with select element containing &apos;required&apos; 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 &apos;required&apos; attribute on the select element in the
form should cause the browser to ensure that the &apos;value&apos; 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 &apos;required&apos; attribute set
and select &apos;value&apos; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571846</commentid>
    <comment_count>1</comment_count>
    <who name="Joel Parks">joel.parks</who>
    <bug_when>2012-03-06 07:33:54 -0800</bug_when>
    <thetext>works as expected on Chrome (and Firefox for that matter)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1034071</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-09-08 23:29:17 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 28649 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130380</attachid>
            <date>2012-03-06 07:32:44 -0800</date>
            <delta_ts>2012-03-06 07:32:44 -0800</delta_ts>
            <desc>form with select element containing &apos;required&apos; attribute for testing</desc>
            <filename>selectRequiredTesting.html</filename>
            <type>text/html</type>
            <size>1408</size>
            <attacher name="Joel Parks">joel.parks</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIg
Y29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBoZWlnaHQ9ZGV2aWNlLWhlaWdodCIvPg0KICA8
dGl0bGU+U2VsZWN0IGVsZW1lbnQgdGVzdGluZzwvdGl0bGU+DQo8L2hlYWQ+DQoNCjxib2R5Pg0K
ICA8ZGl2Pg0KICAg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