New issue
Advanced search Search tips

Issue 591347 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

[contentEditable] rendered selection highlights preceding table that is not in the actual selection

Reported by stef.bus...@liones.nl, Mar 2 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2657.0 Safari/537.36

Example URL:
http://codepen.io/Bwrrp/pen/jqPWqG

Steps to reproduce the problem:
1. Go to http://codepen.io/Bwrrp/pen/jqPWqG
2. Click the "click me" text to select the surrounding container element
3. Observe how the table is also highlighted, but not included in the selection as illustrated by the cloned contents displayed below.

What is the expected behavior?
Expected content to only be highlighted if it is included in the selection

What went wrong?
If, inside a contentEditable context, a table precedes a container which starts with a floating, non-contentEditable element, that complete table will appear selected when the container is selected.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 50.0.2657.0  Channel: dev
OS Version: 
Flash Version: Shockwave Flash 21.0 r0
 
Correction: it turns out the non-contentEditable element does not need to float. The presence of the contentEditable="false" at the start of the selected container is enough to cause the preceding table to appear selected.

Possibly related: if the contentEditable="false" element is placed at the end of the container, the selection appears collapsed when the container is selected.
Components: -Blink Blink>Editing
Status: Untriaged (was: Unconfirmed)

Comment 3 by yosin@chromium.org, Mar 3 2016

Components: -Blink>Editing Blink>TexeSelection
Status: Available (was: Untriaged)

Comment 4 by tkent@chromium.org, Mar 23 2016

Components: -Blink>TexeSelection Blink>TextSelection

Comment 5 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection Blink>Editing>Selection

Comment 6 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 7 by sheriffbot@chromium.org, Oct 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment