New issue
Advanced search Search tips

Issue 650722 link

Starred by 1 user

Issue metadata

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

Blocking:
issue 649828



Sign in to add a comment

shadowRoot.getSelection() doesn't work with shadow boundary crossing selection and selection#extend() can't create shadow boundary crossing selection

Project Member Reported by l...@chromium.org, Sep 27 2016

Issue description

Version: 53.0.2785.116
OS: Linux

What steps will reproduce the problem?
(1) Open the attached HTML file, make a text selection starting in the first line (Before the shadow) and ending in the second (I am inside the shadow)
(2) Open the DevTools console and evaluate 'shadowRoot.getSelection().getRangeAt(0)'

What is the expected output?
startOffset, endOffset, startContainer, endContainer should match the user's selection

What do you see instead?
When the selection starts outside the shadow, endOffset is always 0.
When the selection starts inside the shadow, startOffset is always 0 and the endContainer is incorrect
When the div#foo is changed to a span#foo, endOffset is always 1

 
shadowRootSelect.html
190 bytes View Download

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

Components: -Blink>TextSelection Blink>Editing>Selection

Comment 2 by yosin@chromium.org, Oct 13 2016

Cc: -yosin@chromium.org
Components: -Blink>Editing
Status: Available (was: Untriaged)

Comment 3 by l...@chromium.org, Oct 26 2016

Labels: -Pri-3 Hotlist-Google Pri-2

Comment 4 by l...@chromium.org, May 8 2017

Cc: yoichio@chromium.org
Friendly ping @yoichio, would you know the best person to assign this to?
It's me but this is P-2(nice to have). 
If there is strong request from web authors and/or teams, I'll consider
 the priority.

Comment 6 by l...@chromium.org, May 11 2017

Thanks for the status update

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

Labels: Pri-3
Project Member

Comment 8 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