Bug 61110

Summary: TextIterator on Details&summary iterates characters in incorrect visual order
Product: WebKit Reporter: Kent Tamura <tkent>
Component: DOMAssignee: Hajime Morrita <morrita>
Status: NEW    
Severity: Minor CC: ahmad.saleem792, ap, bfulgham, dglazkov, dominicc, luiz, morrita, rniwa, webkit-bug-importer, yael
Priority: P3 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: data:text/html,aaa <details open>bbb <summary>ccc</summary> ddd</details> eee
Bug Depends on:    
Bug Blocks: 252223, 64072    

Kent Tamura
Reported 2011-05-18 23:58:41 PDT
1. Load data:text/html,aaa <details open>bbb <summary>ccc</summary> ddd</details> 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 "aaa ccc bbb ddd eee" because it's the visual order. Actual result: The pated test is "aaa bbb ccc ddd eee".
Attachments
Kent Tamura
Comment 1 2011-05-19 00:20:38 PDT
I don't think this is so severe.
Hajime Morrita
Comment 2 2011-12-05 00:11:45 PST
Reforming tree: Pushed this down to the flattened tree family.
Ahmad Saleem
Comment 3 2022-08-05 16:22:00 PDT
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
Radar WebKit Bug Importer
Comment 4 2022-08-05 18:41:09 PDT
Ahmad Saleem
Comment 5 2022-08-09 15:05:18 PDT
*** Bug 61112 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.