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)
Tracking
()
VERIFIED
INVALID
People
(Reporter: surkov, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
|
339 bytes,
text/html
|
Details |
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•20 years ago
|
||
run it from chrome protocol
Comment 2•20 years ago
|
||
Attachment #173944 -
Attachment is obsolete: true
Comment 3•20 years ago
|
||
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
| Reporter | ||
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•