Range should be updated for a Text node without parentNode |
||
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.
,
Feb 8 2017
> This is a part of http://w3c-test.org/dom/ranges/Range-mutations.html failures. Now it's http://w3c-test.org/dom/ranges/Range-mutations-splitText.html
,
Apr 20 2017
,
Apr 20 2017
|
||
►
Sign in to add a comment |
||
Comment 1 Deleted