12 Jun 2008 1:56 AM #1
Quirks or Standard mode?
Probably something we should get a clear direction from you on - are we moving forward with standards mode or quirks mode? (http://en.wikipedia.org/wiki/Quirks_mode)
Google as of GWT 1.5 have decided to recommend moving to standards mode...
As testing/bugs will exist depending on what HTML mode is used, I think it would be worthwhile getting some statement on what is / isn't supported?
12 Jun 2008 2:02 AM #2
I note that both Explorer and Mail demo both run in Standards mode.
12 Jun 2008 5:01 AM #3
I believe Ext GWT should support Standard Mode for these reasons :
- "Support for quirks mode (...) may be dropped in future versions of GWT"
- I believe cross-browser compatibility will be better with Standard Mode
- when you build a new webapp with the GWT 1.5 applicationCreator, the generated html file enable Standard Mode. Therefore I (and I guess other users) have tested my web application in standard mode since beta1 release (was already supporting GWT 1.5M2) and not in quirks mode.
I note that both Explorer and Mail demo both run in Standards mode.Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
12 Jun 2008 12:13 PM #4
Wow - didn't think of using the Application creator to confirm - obvious now.
Yep, well that is probably enough for me... we should be using standards mode and probably the doctype as defined in GWT ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
17 Jun 2008 1:52 AM #5
17 Jun 2008 2:07 AM #6
another interesting tid bit...
ExtJS set the doctype to...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
But most other samples have no doctype set - so quirks mode? So how does Jack handle things?
20 Jun 2008 1:20 AM #7
5 Aug 2008 6:33 PM #8
Note that GWT RC2 release notes has suggested that it is better to revert back to quirks mode, and the applicationCreator defaults to quirks mode when creating a new GWT app.
You can still use standards mode for your GWT app, but please be aware that you may notice some layout issues. If you are switching an app from quirks mode to standards mode, your CSS styles might be applied differently, which could also affect your application. We will continue to address standards mode support in future GWT releases.
6 Aug 2008 12:11 AM #9
What a shame
Anyway, Ext GWT relies neither on standard mode nor on quirks mode. Ext GWT relies on "old standard" mode (HTML 3.2) so it won't affect us (we still have to add a doctype after the applicationCreator).
6 Aug 2008 12:19 AM #10
1) ExtGWT needs this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2) RC2 GWT creates this ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
subtle but important difference in the version...