Closed Bug 164448 Opened 22 years ago Closed 11 years ago

<selection>.toString doesn't always agree with its single <range>.toString

Categories

(Core :: DOM: Selection, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: neil, Unassigned)

Details

(Keywords: qawanted)

Attachments

(1 file)

I have a case of a selection of a single range where the results of toString() differ, the range returning the correct value but the selection being incorrect. One way to demonstrate this problem is to use Composer, because it's easier to select text in composer. 1. Type "R. I. P." into Composer. 2. Select the "I." and make it italic. 3. Press End, then select back 3 characters " P." 4. Debug / Test Selection Notice that although the range start and are 0 and 3 the selection is just "P."
Attached file Test case (deleted) —
Sorry about the bad JS to select the text node, I couldn't figure out an easier way of doing it.
Assignee: mjudge → nobody
QA Contact: pmac → selection
WFM, mozilla-central nightly on Linux64.
Keywords: qawanted
Marking WFM per comment 2. Please only reopen this issue if you can reproduce it on current OS and Firefox versions.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: