Closed Bug 424108 Opened 16 years ago Closed 15 years ago

Do not select final period when double clicking a word

Categories

(Core :: DOM: Selection, defect)

1.8 Branch
x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rochbutterfly, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

When double clicking on a word to select it, and it happens that the word is at the end of a sentence, the period following the word gets selected as well.


Reproducible: Always

Steps to Reproduce:
Double click on a word that is at the end of a sentence to select it.

Actual Results:  
The word and the period are both selected.

Expected Results:  
Only the word should be selected.

Solution should be smart enough to distinguish between a period that is within the word (such as a decimal point in numbers) and a period which is a punctuation mark at the end of a sentence. Do the same for question marks, exclamation points, and quotation marks.
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Component: General → Selection
Product: Firefox → Core
QA Contact: general → selection
Resolution: --- → WORKSFORME
Version: unspecified → 1.8 Branch
You need to log in before you can comment on or make changes to this bug.