Closed
Bug 281775
Opened 20 years ago
Closed 20 years ago
removeAllRanges() method of nsISelection doesn't actually remove range objects. Is it right behaviour?
Categories
(Core :: DOM: Selection, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: surkov, Unassigned)
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); 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•20 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•