New issue
Advanced search Search tips

Issue 656522 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 651744



Sign in to add a comment

Range should be updated for a Text node without parentNode

Project Member Reported by tkent@chromium.org, Oct 17 2016

Issue description

Version: 56 canary
OS: All

What steps will reproduce the problem?
(1) Load the following HTML

<!DOCTYPE html>
<script>
var t = document.createTextNode('foobar');
var r = document.createRange();
r.setStart(t, 0);
r.setEnd(t, 6);
t.splitText(3);
alert('range: endOffset=' + r.endOffset);
</script>


What is the expected output?
An alert dialog should say "range: endOffset=3"

What do you see instead?
An alert dialog says "range: endOffset=6"


Please use labels and text to provide additional information.

Firefox, and even Safari show the correct value.
This is a part of http://w3c-test.org/dom/ranges/Range-mutations.html failures.

 

Comment 1 Deleted

Comment 3 by tkent@chromium.org, Apr 20 2017

Owner: tkent@chromium.org
Status: Started (was: Available)

Comment 4 by tkent@chromium.org, Apr 20 2017

Labels: M-60
Status: Fixed (was: Started)
Fixed by r465935

Sign in to add a comment