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".
I don't think this is so severe.
Reforming tree: Pushed this down to the flattened tree family.
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
<rdar://problem/98222614>
*** Bug 61112 has been marked as a duplicate of this bug. ***