<?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>61110</bug_id>
          
          <creation_ts>2011-05-18 23:58:41 -0700</creation_ts>
          <short_desc>TextIterator on Details&amp;summary iterates characters in incorrect visual order</short_desc>
          <delta_ts>2023-02-13 18:51:59 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>data:text/html,aaa &lt;details open&gt;bbb &lt;summary&gt;ccc&lt;/summary&gt; ddd&lt;/details&gt; eee</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P3</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>252223</blocked>
    
    <blocked>64072</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Hajime Morrita">morrita</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>luiz</cc>
    
    <cc>morrita</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>406263</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-05-18 23:58:41 -0700</bug_when>
    <thetext>1. Load data:text/html,aaa &lt;details open&gt;bbb &lt;summary&gt;ccc&lt;/summary&gt; ddd&lt;/details&gt; eee
2. Select all text (⌘-A / Ctrl-A)
3. Copy (⌘-C / Ctrl-C)
4. Paste on a plain text box

Expected:
 The pasted text should be &quot;aaa ccc bbb ddd eee&quot; because it&apos;s the visual order.

Actual result:
 The pated test is &quot;aaa bbb ccc ddd eee&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406273</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-05-19 00:20:38 -0700</bug_when>
    <thetext>I don&apos;t think this is so severe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>514949</commentid>
    <comment_count>2</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-12-05 00:11:45 -0800</bug_when>
    <thetext>Reforming tree: Pushed this down to the flattened tree family.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889270</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-05 16:22:00 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using mentioned test case converted into JSFiddle:

Link - https://jsfiddle.net/yntdab40/show

Selecting any text and then doing CMD + A then CMD + C and then copying here shows this for Safari 15.6 and Firefox Nightly 105:

aaa
bbb 
ccc
ddd
eee

While for Chrome Canary 106, it shows this:

aaa
ccc
bbb dddeee</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889303</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-05 18:41:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/98222614&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890113</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-09 15:05:18 -0700</bug_when>
    <thetext>*** Bug 61112 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>