<?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>244984</bug_id>
          
          <creation_ts>2022-09-09 09:15:28 -0700</creation_ts>
          <short_desc>AX: Text fields within summary element can cause unexpected open/close behavior</short_desc>
          <delta_ts>2025-12-09 04:43:39 -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>Accessibility</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>252223</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott">scottaohara</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>jakub</cc>
    
    <cc>mike</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1897259</commentid>
    <comment_count>0</comment_count>
    <who name="Scott">scottaohara</who>
    <bug_when>2022-09-09 09:15:28 -0700</bug_when>
    <thetext>Steps to reproduce the problem:
1. Go to https://codepen.io/scottohara/pen/yLjOXdp
2. Move keyboard focus to the nested input element within the summary
3. Use the space key to add spaces to the text input field. Observe that this causes the details element to show/hide its content each time the space key is pressed.

Problem Description:
Including nested interactive elements within a summary can be problematic depending on the screen reader / browser combination.  But, with chromium/webkit browsers in particular an extra unintended behavior occurs if a text field (input type=text or textarea) is a descendant of the summary element. If keyboard focus is moved to this nested text field and the space key is pressed, it will cause the state of the details element to toggle between open|closed.

The codepen provided in the repro steps demonstrates this behavior.

This behavior does not occur in Firefox. It does presently occur in Chrome. Chrome issue - https://bugs.chromium.org/p/chromium/issues/detail?id=1361983</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897260</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-09 09:15:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/99747154&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975761</commentid>
    <comment_count>2</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2023-09-06 02:09:45 -0700</bug_when>
    <thetext>Can you reproduce this in Safari Technology Preview 177?

I’m able to reproduce it in Safari 16.2, but not in Safari Technology Preview 177, nor in the Safari 17 developer beta.

So it seems like this might have been fixed in the sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977460</commentid>
    <comment_count>3</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2023-09-14 01:21:44 -0700</bug_when>
    <thetext>This seems to have been fixed in the sources, and will ship in Safari 17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164408</commentid>
    <comment_count>4</comment_count>
    <who name="">jakub</who>
    <bug_when>2025-12-09 04:43:39 -0800</bug_when>
    <thetext>This seems to be back (testing now on Safari 26.1).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>