Closed Bug 281778 Opened 20 years ago Closed 20 years ago

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

Categories

(Core :: DOM: Selection, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: surkov, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

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:
Attached file test case (obsolete) —
run it from chrome protocol
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
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: