Hi Robert,
Thanks for bringing this up.

You're right, there is contradictory information between the comments in the
generated host HTML page and the tutorial documentation. The tutorial
documentation is actually the one telling the false stories. It should be
updated to say that including the transitional doctype will essentially give
"quirks" mode, and using this in the tutorial, the sample we're building is
being built in quirks mode.

To work in standards mode, you would have to use one of the various other
doctypes that enforce standards mode in all browsers (see link below). For
the most part, GWT applications will work correctly in standards mode. In
fact, GWT applications are guaranteed to work correctly in standards mode if
you're strictly using the DOM API to create your widgets. The only time
standards mode might not work so well is if you're using some of the GWT UI
library panels, which might render strangely since standards mode doesn't
allow for things like <td> children taking up the full space of the cell.

Activating Browser Types with Doctype:
http://hsivonen.iki.fi/doctype/

The tutorial docs will be corrected to reflect the fact that we're actually
working in quirks mode with the transitional doctype.

Cheers,
-Sumit Chandel

On Mon, Jun 22, 2009 at 8:41 PM, Robert Lehr <[email protected]> wrote:

>
>
> Haha - :)
>
> You're right.  You answered the obvious question and I appreciate
> that.  I didn't mean for you to take offense to my further inquiry.
>
> However, I was hoping that the issue of contradictory statements in
> the GWT docs would be addressed more directly in addition to the
> question of browser-modes, the one that you answered so well.  The
> clarification may help others avoid similar confusion.
>
> -robert
>
> On Jun 22, 5:57 am, Ian Bambury <[email protected]> wrote:
> > You asked "So - TRANSITIONAL denotes STANDARDS mode...Or - does
> TRANSITIONAL
> > denote QUIRKS mode ?"
> >
> > Please accept my apologies for answering your question. Rest assured it
> > won't happen again.
> >
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/6/22 Robert Lehr <[email protected]>
> >
> >
> >
> > > Pardon me if I am missing something.  But I do not see how your
> > > comments address the apparent contradiction in the docs.
> >
> > > -robert
> >
> > > On Jun 20, 7:23 am, Ian Bambury <[email protected]> wrote:
> > > > Transitional means 'transitional'. It differs depending on the html
> > > version.
> > > > '4.01 Transitional' means 'contains all HTML elements and attributes,
> > > > including presentational and deprecated elements (like font).
> Framesets
> > > are
> > > > not allowed.'
> >
> > > > But...
> >
> > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional// EN">
> >
> > > > ...will trigger quirks mode in newer browsers and older browsers just
> > > have
> > > > quirks anyway. Although not the same quirks as each other, of course.
> >
> > > > Personally, I use
> >
> > > > <!DOCTYPE Common PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' '
> > >http://www.w3.org/TR/html4/loose.dtd'>
> >
> > > > which will give you the 4.01 Transitional behaviour mentioned above
> in
> > > > almost all browsers - all the important ones, anyway.
> >
> > > > 2009/6/20 Robert Lehr <[email protected]>
> >
> > > > > FYI, there appears to be a discrepancy in the docs w/rt to the doc
> > > > > type specifying
> > > > > "Transitional" denotes "Standards" mode or "Quirks" mode.
> >
> > > > > Which does it denote ?  Note the following from GWT docs.
> >
> > > > > Fromhttp://code.google.com/webtoolkit/tutorials/1.6/create.html-
> >
> > > > >        To provide better cross-browser compatibility, GWT sets the
> > > > > doctype declaration to HTML 4.01 Transitional. This sets the
> rendering
> > > > > engine to "Standards Mode". If you remove this line, the page will
> be
> > > > > rendered in "Quirks Mode", ...
> >
> > > > > So - TRANSITIONAL denotes STANDARDS mode.
> >
> > > > > From the comments in the "host page" auto-gen'ed by webAppCreator -
> >
> > > > >        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//
> > > > > EN">
> > > > >        <!-- The HTML 4.01 Transitional DOCTYPE declaration-->
> > > > >        <!-- above set at the top of the file will set     -->
> > > > >        <!-- the browser's rendering engine into           -->
> > > > >        <!-- "Quirks Mode". Replacing this declaration     -->
> > > > >        <!-- with a "Standards Mode" doctype is supported, -->
> > > > >        <!-- but may lead to some differences in layout.   -->
> >
> > > > > Or - does TRANSITIONAL denote QUIRKS mode ?
> >
> > > > > -robert
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to