List of behaviour differences among different browsers

13 views
Skip to first unread message

uwfrog

unread,
Oct 2, 2006, 5:37:53 PM10/2/06
to Google Web Toolkit
I just wanted to start a thread to collect any major/minor differences
in behaviour among different browsers that people need to pay attention
to when programming with GWT.

I understand that the ultimate goal of GWT is to handle the differences
transparently, and GWT team has already done a very good job in
managing these differences. However, there are some tiny little things
people hardly notice, either in the doc or not, and they might
potentially grow to be a time-eater when things come along. In short, I
really want this thread to be a helpful list of tips that could help
people save their time.

Here goes my first two.

FF 1.5
Applying selectAll() on a TextBoxBase with empty text, the following
error will show in FF javascript console,

Error:uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE)
[nsIDOMNSHTMLInputElement.setSelectionRange]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
http://localhost:8888/xxx.xxx.xxx.in/FE873A2F64AE9177D6169A6A3342BF17.cache.html?0
:: iP :: line 417" data: no]

As a result, you will not see anything display on the page.

IE
Everything works fine for IE.

Work around: check if TextBoxBase has text before selectAll().

=================================================

FF 1.5
selectAll() doesn't lead to setFocus(true).

IE
selectAll() automatically setFocus(true).


Work around: Use setFocus(true) .

Reply all
Reply to author
Forward
0 new messages