<?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>219536</bug_id>
          
          <creation_ts>2020-12-04 03:26:22 -0800</creation_ts>
          <short_desc>Disabled select options are still selectable when optgroups are used in MobileSafari</short_desc>
          <delta_ts>2020-12-07 12:04:51 -0800</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>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>201458</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=69014</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kris Breuker">kris</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>smoley</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1711977</commentid>
    <comment_count>0</comment_count>
    <who name="Kris Breuker">kris</who>
    <bug_when>2020-12-04 03:26:22 -0800</bug_when>
    <thetext>MobileSafari doesn&apos;t seem to honour the disabled attribute on optgroups, see for example the example at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup#Examples where the options in the third (disabled) optgroup are enabled in Safari on iOS.

Also, when optgroups are used, disabled options are still selectable, whether they are within an optgroup or outside of it. In the following examples the disabled option is rendered as disabled, but still selectable (and once selected, they are no longer rendered as being disabled):

&lt;select&gt;
  &lt;optgroup label=&quot;My group&quot;&gt;
    &lt;option&gt;My selectable option&lt;/option&gt;
    &lt;option disabled&gt;My disabled option&lt;/option&gt;
  &lt;/optgroup&gt;
&lt;/select&gt;

&lt;select&gt;
  &lt;option&gt;My selectable option&lt;/option&gt;
  &lt;option disabled&gt;My disabled option&lt;/option&gt;
  &lt;optgroup label=&quot;My group&quot; /&gt;
&lt;/select&gt;

Tested using iOS 14.2 on iPhone 11 Pro and iOS 14.2, 13.7 and 12.4 in the iOS Simulator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712527</commentid>
    <comment_count>1</comment_count>
      <attachid>415570</attachid>
    <who name="Smoley">smoley</who>
    <bug_when>2020-12-07 12:00:55 -0800</bug_when>
    <thetext>Created attachment 415570
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712532</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-12-07 12:04:51 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 201458 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>415570</attachid>
            <date>2020-12-07 12:00:55 -0800</date>
            <delta_ts>2020-12-07 12:00:55 -0800</delta_ts>
            <desc>test case</desc>
            <filename>219536.html</filename>
            <type>text/html</type>
            <size>336</size>
            <attacher name="Smoley">smoley</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPHNlbGVjdD4KCSAgPG9wdGdyb3VwIGxhYmVsPSJNeSBn
cm91cCI+CgkgICAgPG9wdGlvbj5NeSBzZWxlY3RhYmxlIG9wdGlvbjwvb3B0aW9uPgoJICAgIDxv
cHRpb24gZGlzYWJsZWQ+TXkgZGlzYWJsZWQgb3B0aW9uPC9vcHRpb24+CgkgIDwvb3B0Z3JvdXA+
Cgk8L3NlbGVjdD4KCgk8c2VsZWN0PgoJICA8b3B0aW9uPk15IHNlbGVjdGFibGUgb3B0aW9uPC9v
cHRpb24+CgkgIDxvcHRpb24gZGlzYWJsZWQ+TXkgZGlzYWJsZWQgb3B0aW9uPC9vcHRpb24+Cgkg
IDxvcHRncm91cCBsYWJlbD0iTXkgZ3JvdXAiIC8+Cgk8L3NlbGVjdD4KPC9odG1sPgog
</data>

          </attachment>
      

    </bug>

</bugzilla>