aym / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

Language Detect does not Fail elegantly #466

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a google.language.detect() call
2. Paste a string such as:
"Lorem ipsum 
dolor sit amet, 
consectetuer"

What is the expected output? What do you see instead?

The newlines in the string will hang the script, freeze certain browsers
and require a restart of the browser. This happens in Firefox (requires
restart usually), Chrome, and so forth. 

The detection does not fail elegantly. If you also paste a snippet of test
code it also fails the same way. If someone accidentally pastes a string of
text in a detect location it should therefore not hang the entire browser.

Original issue reported on code.google.com by brettfo...@gmail.com on 1 Jun 2010 at 7:47

GoogleCodeExporter commented 8 years ago

Original comment by jscud.w...@gmail.com on 28 Jul 2010 at 1:54