Selection of floats has weird behavior |
|||
Issue description
Chrome Version : 65.0.3315.3
URLs (if applicable) : See attached test case.
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: FAIL
Firefox: OK
Edge: OK
What steps will reproduce the problem?
(1) Click three times on 5678
(2) Paste the result as plain text.
What is the expected result?
"5678" with no newline should be pasted.
What happens instead?
"5678
" is pasted.
The selection also changes in weird ways.
The first click focuses the span element containing 5678.
The second click selects both spans. Copying and pasting gives "12345678".
The third click deselects the first span, and only selects the second. But it also selects enough text that serializing the DOM to text creates a newline. So copying and pasting gives "5678
" instead of "5678" as expected by the visual appearance of the selection.
chrome-two-clicks.png is Chrome after two clicks. chrome-three-clicks.png is Chrome after three clicks.
In Firefox, the third click doesn't change the selection any further.
firefox-two-or-three-clicks.png is Firefox after two and three clicks. It looks identical, but the copy and paste result is "5678" as it appears it should be.
Safari has the same bug/behavior as Chrome, but the odd selection behavior is more obvious: the third click causes the second list bullet to be selected as well. safari-three-clicks.png illustrates this.
,
Jan 10 2018
I'll take a look.
,
Jan 10
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
,
Jan 11
|
|||
►
Sign in to add a comment |
|||
Comment 1 by yosin@chromium.org
, Jan 10 2018Status: Available (was: Unconfirmed)