Spelling stops with multiple spaces

10 views
Skip to first unread message

pa...@garden.com.au

unread,
Jul 8, 2015, 5:28:15 AM7/8/15
to aspne...@googlegroups.com
Have noticed a problem where the spelling function fails in the As You Type mode when there are two or more spaces between words when the page is rendered.

Tested with latest download on IE11 and Firefox 39.0.

To see the problem add a asp:Button to the Hello world demo page included in the download. On intial load both Helllo and Worlb will be underlined. Add another space between the words and press the postback button and the word Worlb will no longer be underlined (red-squiggly). The problem is more consistently noticed in Firefox.

All words following the multiple space will not be checked. Have tried with more than two spaces and the results are variable but failures still occur.

This problem has shown a secondary issue whereby CPU usage increases. The renderProxy method is called repeatedly as the word cannot be matched from the cache (undefined) and CheckInSitu is called at 1ms intervals.

Words are not correctly stored in the livespell.cache and have additional whitespace either at the beginning or the end of the word. Simply trim()ing the token on storage in the cache in the checkNow function fixes the problem but this is only my hack.

Regards,
Paul

Reply all
Reply to author
Forward
0 new messages