removeAllRanges() method of nsISelection doesn't actually remove range objects. Is it right behaviour?

VERIFIED WORKSFORME

Status

()

Core
Selection
VERIFIED WORKSFORME
13 years ago
13 years ago

People

(Reporter: surkov, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 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);
selection.removeAllRanges();
textnode.data='hello';
alert(range.startOffset==0);//true

When I change content of text node then linked range object is changed. It means
removeAllRanges() doesn't remove ranges.

I guess removeAllRanges() should remove range objects. 

Reproducible: Always

Steps to Reproduce:
(Reporter)

Updated

13 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.