Spell check underlines spaces when spacing in front of a misspelled word




Spelling checker
9 years ago
2 years ago


(Reporter: Derrick Martin, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)

Whenever you type a misspelled word, it becomes underlined. If you place your cursor at the beginning of the word and press the spacebar, the red underline lengthens. 

On an SMF forum, and in my Hotmail "new message" box (which probably have similar coding, I'd guess), where I originally found the error, this only happens if the word is the very first word in the line (also note that the word's first letter must be the first or second character in the line; if there is one space in front of the word, it works, but two spaces does not work; I attribute this phenom to the nature of the spell checker, however; it likely uses a Split() or similar function to find individual words that may lead to this).

The error differs, though, in the second place I noticed it: in this very textbox (In fact, I'm reproducing it now with the word "textbox"). In this textbox, I can recreate the error midline. The word doesn't have to be the first word in the line in this textbox. This difference may be due to differing types of textboxes. 

Reproducible: Always

Steps to Reproduce:
1. Misspell a word.
2. Move your I-beam away from the word either by spacing or clicking, such that the spell check underlines the word.
3. Place your I-beam at the beginning of the word.
4. Begin pressing spacebar. The red underline should lengthen, but certain conditionals may be in place for said error to occur (see "details").
5. Click elsewhere or backspace to have the underline disappear. Repeat steps to have it reappear.
Actual Results:  
The red underline lengthens 100% of the time I perform these steps.

Expected Results:  
The underline should have stayed the same length and stayed under the original word. The spaces should not have been counted in the misspelling.

Comment 1

9 years ago
Created attachment 383683 [details]
Reproduction of the error in the report box itself

Comment 2

9 years ago
Confirming, thanks for the testcase. 

There are a number of bugs involving insertion of new text and the spell checker, not sure how this one is related.
Component: General → Spelling checker
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → spelling-checker


2 years ago
See Also: → bug 686287
You need to log in before you can comment on or make changes to this bug.