<?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>146950</bug_id>
          
          <creation_ts>2015-07-14 16:55:04 -0700</creation_ts>
          <short_desc>Choosing from a select element within a &lt;label&gt; field causes checkbox to be checked</short_desc>
          <delta_ts>2023-05-25 14:41:13 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Greg Scown">greg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>jonlee</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1109521</commentid>
    <comment_count>0</comment_count>
      <attachid>256810</attachid>
    <who name="Greg Scown">greg</who>
    <bug_when>2015-07-14 16:55:04 -0700</bug_when>
    <thetext>Created attachment 256810
HTML which demonstrates this WebKit / label element bug

To reproduce, open the attached webkit_label_bug.html file in the Safari nightly build (r186801).

Select from the popup. Note the checkbox state. Repeat 2-3 times.

Expected Behavior:
Selecting from popup has no impact on checkbox.

Actual Behavior:
Selecting from popup toggles the checkbox.

Here&apos;s the HTML in case there&apos;s any issue with the attachment:

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action=&quot;#&quot;&gt;
&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;Checkbox&quot; id=&quot;3&quot; /&gt;Popup &lt;select name=&quot;popup_3&quot;&gt;&lt;option selected=&quot;selected&quot;&gt;One&lt;/option&gt;&lt;option&gt;Two&lt;/option&gt;&lt;option&gt;Three&lt;/option&gt;&lt;option&gt;Four&lt;/option&gt;&lt;option&gt;Five&lt;/option&gt;&lt;/select&gt;&lt;/label&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110187</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-07-17 13:25:03 -0700</bug_when>
    <thetext>Reproduces in Safari/WebKit 8.0.7 too.

In Firefox, the checkbox visibly activates when clicking on the select, but it doesn&apos;t change the state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958039</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-25 14:41:13 -0700</bug_when>
    <thetext>I tried to reproduce this in Safari 16.5 and it does not reproduce, it just activates &apos;checkbox&apos; when I open menu for selection and it is similar in Firefox Nightly 115. While Chrome Canary 115 does not do anything.

CCing - Aditya for any input.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>256810</attachid>
            <date>2015-07-14 16:55:04 -0700</date>
            <delta_ts>2015-07-14 16:55:04 -0700</delta_ts>
            <desc>HTML which demonstrates this WebKit / label element bug</desc>
            <filename>webkit_label_bug.html</filename>
            <type>text/html</type>
            <size>313</size>
            <attacher name="Greg Scown">greg</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KPGZvcm0gYWN0aW9u
PSIjIj4KPGxhYmVsPjxpbnB1dCB0eXBlPSJjaGVja2JveCIgbmFtZT0iQ2hlY2tib3giIGlkPSIz
IiAvPlBvcHVwIDxzZWxlY3QgbmFtZT0icG9wdXBfMyI+PG9wdGlvbiBzZWxlY3RlZD0ic2VsZWN0
ZWQiPk9uZTwvb3B0aW9uPjxvcHRpb24+VHdvPC9vcHRpb24+PG9wdGlvbj5UaHJlZTwvb3B0aW9u
PjxvcHRpb24+Rm91cjwvb3B0aW9uPjxvcHRpb24+Rml2ZTwvb3B0aW9uPjwvc2VsZWN0PjwvbGFi
ZWw+CjwvZm9ybT4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>