Open Bug 382771 Opened 14 years ago Updated 13 years ago

Spellchecker shouldn't require whitespace after block elements to delimit words

Categories

(Core :: DOM: Editor, defect)

x86
All
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: phil.crosby, Unassigned)

References

()

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: 

In Midas,

"<div>spell</div>check" is processed as one word (and so triggers spellcheck). This, however, is processed as two words:

"<div>spell</div>\ncheck"

Whitespace after a block element shouldn't be required to delimit words.

Adding whitespace after the <div> seems trivial, but unfortunately this bug has no workaround if you're using the editor's insertHTML command to insert html, because that command trims whitespace. Thus, editor.execCommand("insertHTML","<div>heading</div>\n") will not insert a newline after the <div>, and the "heading" text will trigger spellcheck with the words surrounding it.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
test case as attachment
Seeing this behavior in Firefox 3 RC2 while editing a document in Google Docs.
Attachment #324436 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.