Open Bug 382771 Opened 14 years ago Updated 13 years ago
Spellchecker shouldn't require whitespace after block elements to delimit words
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:126.96.36.199) Gecko/20070515 Firefox/188.8.131.52 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.
You need to log in before you can comment on or make changes to this bug.