shadowRoot.getSelection() doesn't work with shadow boundary crossing selection and selection#extend() can't create shadow boundary crossing selection |
|||||||
Issue descriptionVersion: 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
,
Oct 13 2016
,
Oct 26 2016
,
May 8 2017
Friendly ping @yoichio, would you know the best person to assign this to?
,
May 9 2017
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.
,
May 11 2017
Thanks for the status update
,
Oct 4 2017
,
Oct 4
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
,
Oct 5
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by tkent@chromium.org
, Oct 12 2016