Bug 61110
Summary: | TextIterator on Details&summary iterates characters in incorrect visual order | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> |
Component: | DOM | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Tamura
I don't think this is so severe.
Hajime Morrita
Reforming tree: Pushed this down to the flattened tree family.
Ahmad Saleem
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
<rdar://problem/98222614>
Ahmad Saleem
*** Bug 61112 has been marked as a duplicate of this bug. ***