Issue 586964 in chromium: Range.setStartAfter() in Chome does not work correctly with inline elements

67 views
Skip to first unread message

chro...@googlecode.com

unread,
Feb 15, 2016, 4:10:11 PM2/15/16
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-3

New issue 586964 by k...@xtechforum.com: Range.setStartAfter() in Chome
does not work correctly with inline elements
https://code.google.com/p/chromium/issues/detail?id=586964

Chrome Version : 48.0.2564.109
URLs (if applicable) : https://jsfiddle.net/vXnCM/5223/
http://stackoverflow.com/questions/35374310/range-setstartafter-in-chome-does-not-work-correctly-with-spans-or-inline-elem
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: not tested
Firefox: OK
IE: OK

What steps will reproduce the problem?
1.Create a content editable div with an inline element (span works, but
even a div with display:inline block will also cause the issue)
2. try to move the caret after it

What is the expected result?
the caret should be after the element

What happens instead?

the caret is at the end of the element, but its inside the element instead
of outside of it. IE and firefox both appropriately put the caret outside
of the element.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 15, 2016, 5:02:02 PM2/15/16
to chromi...@chromium.org

Comment #1 on issue 586964 by k...@xtechforum.com: Range.setStartAfter() in
Chome does not work correctly with inline elements
https://code.google.com/p/chromium/issues/detail?id=586964

I posted a JS fiddle with a DIV by mistake. That one shows the correct
behavior.

This JS fiddle with a span, shows the bug:
https://jsfiddle.net/vXnCM/5234/
Notice if you click "Focus" then start typing, you are actually inside the
span and not after it, as you are in IE and firefox.

chro...@googlecode.com

unread,
Feb 16, 2016, 12:43:27 AM2/16/16
to chromi...@chromium.org
Updates:
Status: Untriaged
Labels: OS-All M-50 Cr-Blink-CSS

Comment #2 on issue 586964 by kavv...@chromium.org: Range.setStartAfter()
in Chome does not work correctly with inline elements
https://code.google.com/p/chromium/issues/detail?id=586964

Able to reproduce the issue on windows 7,Linux Ubuntu 14.04 and Mac 10.11
using chrome version 48.0.2564.109 and canary 50.0.2651.0 with the below
steps

1. Go to URL https://jsfiddle.net/vXnCM/5234/
2.Click on Focus and start typing
3.Observe the characters are inside the red div

This is reproducible on ALL OS and it is non regression issue as this is
observed from M30 builds.Marking it as Untriaged.

Thanks,
Reply all
Reply to author
Forward
0 new messages