range linked with text node is changed when content of node is changed.

VERIFIED INVALID

Status

()

VERIFIED INVALID
14 years ago
14 years ago

People

(Reporter: surkov, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

339 bytes, text/html
Details
(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122

var range=selection.getRangeAt(0).cloneRange();
textnode.data='hello';
alert(selection.getRangeAt(0)==0);// expression is true, it is right
alert(range.startOffset==0);// expression is true, why?

Reproducible: Always

Steps to Reproduce:
(Reporter)

Comment 1

14 years ago
Created attachment 173944 [details]
test case

run it from chrome protocol
Created attachment 175210 [details]
Non-chrome-needing testcase
Attachment #173944 - Attachment is obsolete: true
Please see
http://w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/ranges.html#Level-2-Range-Mutation
and in particular section 2.12.2.

Behavior is exactly following the spec here.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID
(Reporter)

Updated

14 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.