yeah, those guys in google knows what they do :)

On Fri, Feb 19, 2010 at 6:39 PM, Chris Lercher <[email protected]>wrote:

> Ok, on closer inspection, the author of the HTML comment is right, and
> I'm wrong. While I'd say that the usual way to set a browser to quirks
> mode is to omit the DOCTYPE declaration, the DOCTYPE in the HTML file
> also leads to quirks mode (because it omits the concrete DTD location,
> so it's effectively an invalid Doctype declaration). This is even
> shown in the table at the bottom of the link I posted:
> http://hsivonen.iki.fi/doctype/
>
> So all is good, GWT 1.7 projects were in quirks mode by default, and
> the documentation is correct.
>
>
> On Feb 19, 2:56 pm, Chris Lercher <[email protected]> wrote:
> > Thanks, I know, and I do (for GWT 2.0). The question is more targeted
> > at the documentation, which says, we shouldn't use some of the old
> > layout elements anymore (e.g. StackPanel), because they don't work
> > well in standards mode.
> >
> > http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
> > (Section "Moving to Standards Mode")
> >
> > But if it's the case that most GWT 1.7 applications never used quirks
> > mode anyway (because WebAppCreator by default created a HTML file in
> > "Almost Standards" mode), then I don't understand that, because the
> > differences between "Almost Standards" and "Standards" aren't very
> > big, or are they?
> >
> > In any case, the comment in the HTML file, that "HTML 4.01
> > Transitional DOCTYPE" triggers quirks mode doesn't seem to be correct.
> > Quirks mode is quite different from (Almost) Standards mode.
> >
> > On Feb 19, 2:46 pm, Alexander Arendar <[email protected]>
> > wrote:
> >
> >
> >
> > > Hi Chris,
> >
> > > you better use the strict mode:
> > > !DOCTYPE HTML PUBLIC
> > > "-//W3C//DTD HTML 4.01//EN"
> > > "http://www.w3.org/TR/html4/strict.dtd";>
> >
> > > That would benefit since new GWT layout panels are optimized for the
> strict
> > > mode.
> >
> > > Sincerely,
> > > Alex
> >
> > > On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher <[email protected]
> >wrote:
> >
> > > > Hi,
> >
> > > > I just had a look at a html page generated by GWT 1.7, and was
> > > > wondering about this:
> >
> > > > <!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.   -->
> >
> > > > GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
> > > > Transitional isn't quirks mode. For all I know, this is called
> "Almost
> > > > Standards mode", which is very close to "Standards mode", except
> > > > mainly for images.
> >
> > > > Seehttp://hsivonen.iki.fi/doctype/ (Section "Choosing a Doctype")
> > > > andhttp://www.quirksmode.org/css/quirksmode.html
> >
> > > > So I wonder: Is this incorrect in the generated HTML page, or are the
> > > > GWT docs actually always talking about "Almost Standards mode", when
> > > > they say, that certain things before GWT 2.0 were designed for
> "Quirks
> > > > mode"? Or maybe the information in my links is wrong?
> >
> > > > Chris
> >
> > > > --
> > > > 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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