Hi all,

before reporting a bug I would like to know whether this happens
intentionally, and if so, what is the use case?

Common use case: one needs to async. upload a file through hidden
iframe, and she also wants to check what's the result of that
submission. The only way is to check the content of that iframe. Since
only text/plain and text/html are being loaded in iframes, we have to
use these content types. Usually it just contains JSON string with
server errors if something goes wrong. If not, then we issue an empty
response.

We use text/plain. When I call SubmitCompleteEvent.getResults() , and
my iframe is loaded with empty response, I'll get "<pre> </pre>" with
firefox, and so my isEmpty() check fails. Shouldn't this be already
sanitized when calling getResults() ?

Now I'm forced to sanitize myself by creating hidden HTML widget,
setHTML() > getText().trim() > isEmpty()
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to