So which mode should we use? In view of future standards, HTML 5 would definitely standards mode (http://diveintohtml5.org/semantics.html) I am guessing that they are going to be all standards mode, however it seems that there is no way to detect which mode to use given just a widget. May be the dev team could introduce some warnings or even exceptions when there is a mode mismatch.
On Feb 19, 9: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 standardsmode. > > http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html > (Section "Moving to StandardsMode") > > But if it's the case that most GWT 1.7 applications never > usedquirksmodeanyway (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" triggersquirksmodedoesn't seem to be > correct.Quirksmodeis quite different from (Almost) Standardsmode. > > On Feb 19, 2:46 pm, Alexander Arendar <[email protected]> > wrote: > > > > > Hi Chris, > > > you better use the strictmode: > > !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 --> > > > <!-- "QuirksMode". Replacing this declaration --> > > > <!-- with a "StandardsMode" doctype is supported, --> > > > <!-- but may lead to some differences in layout. --> > > > > GWT 1.7 was made forquirksmode, as far as I remember. But HTML 4.01 > > > Transitional isn'tquirksmode. For all I know, this is called "Almost > > > Standardsmode", which is very close to "Standardsmode", 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 Standardsmode", 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%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]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
