Bug 258256 - Selection incorrectly highlights text node before inline-wrapped contenteditable=false island
Summary: Selection incorrectly highlights text node before inline-wrapped contentedita...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-06-17 17:58 PDT by Ahmad Saleem
Modified: 2023-06-24 17:59 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-06-17 17:58:34 PDT
Hi Team,

Another bug from Chrome Monorail: crbug.com/534466


Test Case: data:text/html,<h1 contenteditable>W<u><span contenteditable=false>XY</span></u>Z</h1>

^ Open this in STP172 and try to drag select 'XY' and the selection rect 'blue' will also go over 'W' for no good reason.

> Double Clicking works on XY and select correctly.

> If you do from Y side to X or X side to Y selection in reverse, it select have 'selection' rect on 'W'

I think we can fix these issues, so raising this bug.

Also adding 'BrowserCompat' since both Chrome Canary 116 and Firefox Nightly 116 works as expected and don't have issue.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-06-24 17:59:14 PDT
<rdar://problem/111272444>