New apps created with webAppCreator now defaults to standards mode.

Patch by: jlabanca
Review by: jgw



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7410 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/build.xml b/user/build.xml
index 3822bfb..9153f8e 100755
--- a/user/build.xml
+++ b/user/build.xml
@@ -422,7 +422,7 @@
         includes="${gwt.junit.testcase.standards.includes}"
         excludes="${gwt.junit.testcase.standards.excludes}" />
     <gwt.junit test.name="test.standards"
-        test.args="${test.args} -prod -XstandardsMode"
+        test.args="${test.args} -prod -standardsMode"
         test.out="${junit.out}/standards" test.cases="test.standards.tests">
       <extraclasspaths>
         <path refid="test.extraclasspath" />
diff --git a/user/src/com/google/gwt/junit/JUnitShell.java b/user/src/com/google/gwt/junit/JUnitShell.java
index d295e65..1418dca 100644
--- a/user/src/com/google/gwt/junit/JUnitShell.java
+++ b/user/src/com/google/gwt/junit/JUnitShell.java
@@ -362,17 +362,12 @@
       registerHandler(new ArgHandlerFlag() {
         @Override
         public String getPurpose() {
-          return "EXPERIMENTAL: Use CSS standards mode (rather than quirks mode) for the hosting page";
+          return "Use CSS standards mode (rather than quirks mode) for the hosting page";
         }
 
         @Override
         public String getTag() {
-          return "-XstandardsMode";
-        }
-
-        @Override
-        public boolean isUndocumented() {
-          return true;
+          return "-standardsMode";
         }
 
         @Override
diff --git a/user/src/com/google/gwt/junit/public/junit-standards.html b/user/src/com/google/gwt/junit/public/junit-standards.html
index 6e6eae0..41f1193 100644
--- a/user/src/com/google/gwt/junit/public/junit-standards.html
+++ b/user/src/com/google/gwt/junit/public/junit-standards.html
@@ -1,5 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/DTD/strict.dtd">
+<!doctype html>
 <!--
 Copyright 2008 Google Inc.
 
diff --git a/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java b/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
index 17f91be..b5ef039 100644
--- a/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DecoratedStackPanel.java
@@ -23,6 +23,13 @@
  * A {@link StackPanel} that wraps each item in a 2x3 grid (six box), which
  * allows users to add rounded corners.
  * </p>
+ * 
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link StackLayoutPanel} instead.
+ * </p>
+ * 
+ * <p>
  * <h3>CSS Style Rules</h3>
  * <ul class='css'>
  * <li>.gwt-DecoratedStackPanel { the panel itself }</li>
@@ -52,6 +59,9 @@
  * <li>.gwt-DecoratedStackPanel .stackItemMiddleRightInner { the inner element
  * of the cell}</li>
  * </ul>
+ * </p>
+ * 
+ * @see StackLayoutPanel
  */
 public class DecoratedStackPanel extends StackPanel {
   public static final String DEFAULT_STYLENAME = "gwt-DecoratedStackPanel";
diff --git a/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java b/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
index 5ec9fb8..cdadce3 100644
--- a/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DecoratedTabPanel.java
@@ -18,17 +18,26 @@
 /**
  * A {@link TabPanel} that uses a {@link DecoratedTabBar} with rounded corners.
  * 
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link TabLayoutPanel} instead.
+ * </p>
+ * 
+ * <p>
  * <h3>CSS Style Rules</h3>
  * <ul class='css'>
  * <li>.gwt-DecoratedTabPanel { the tab panel itself }</li>
  * <li>.gwt-TabPanelBottom { the bottom section of the tab panel (the deck
  * containing the widget) }</li>
  * </ul>
+ * </p>
  * 
  * <p>
  * <h3>Example</h3>
  * {@example com.google.gwt.examples.TabPanelExample}
  * </p>
+ * 
+ * @see TabLayoutPanel
  */
 public class DecoratedTabPanel extends TabPanel {
   private static final String DEFAULT_STYLENAME = "gwt-DecoratedTabPanel";
diff --git a/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java b/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java
index a361b46..eab74ab 100644
--- a/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DecoratorPanel.java
@@ -25,6 +25,11 @@
  * used to add rounded corners to a {@link Widget}.
  * </p>
  * <p>
+ * This widget will <em>only</em> work in quirks mode in most cases.
+ * Specifically, setting the height or width of the DecoratorPanel will result
+ * in rendering issues.
+ * </p>
+ * <p>
  * Wrapping a {@link Widget} in a "9-box" allows users to specify images in each
  * of the corners and along the four borders. This method allows the content
  * within the {@link DecoratorPanel} to resize without disrupting the look of
diff --git a/user/src/com/google/gwt/user/client/ui/DockPanel.java b/user/src/com/google/gwt/user/client/ui/DockPanel.java
index 6373631..146bf69 100644
--- a/user/src/com/google/gwt/user/client/ui/DockPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/DockPanel.java
@@ -27,6 +27,12 @@
  * A panel that lays its child widgets out "docked" at its outer edges, and
  * allows its last widget to take up the remaining space in its center.
  * 
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link DockLayoutPanel} instead.
+ * </p>
+ * 
+ * @see DockLayoutPanel
  */
 public class DockPanel extends CellPanel implements HasAlignment {
 
diff --git a/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java b/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
index aa641ec..688ed4a 100644
--- a/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
@@ -32,6 +32,11 @@
  * will be automatically decorated with scrollbars when necessary.
  * 
  * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link SplitLayoutPanel} instead.
+ * </p>
+ * 
+ * <p>
  * <img class='gallery' src='HorizontalSplitPanel.png'/>
  * </p>
  * 
@@ -40,6 +45,8 @@
  * <li>.gwt-HorizontalSplitPanel { the panel itself }</li>
  * <li>.gwt-HorizontalSplitPanel hsplitter { the splitter }</li>
  * </ul>
+ * 
+ * @see SplitLayoutPanel
  */
 public final class HorizontalSplitPanel extends SplitPanel {
   /**
diff --git a/user/src/com/google/gwt/user/client/ui/StackPanel.java b/user/src/com/google/gwt/user/client/ui/StackPanel.java
index abbb628..fc09c18 100644
--- a/user/src/com/google/gwt/user/client/ui/StackPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/StackPanel.java
@@ -22,6 +22,12 @@
 /**
  * A panel that stacks its children vertically, displaying only one at a time,
  * with a header for each child which the user can click to display.
+ * 
+ * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link StackLayoutPanel} instead.
+ * </p>
+ * 
  * <p>
  * <img class='gallery' src='StackPanel.png'/>
  * </p>
@@ -37,6 +43,8 @@
  * <h3>Example</h3>
  * {@example com.google.gwt.examples.StackPanelExample}
  * </p>
+ * 
+ * @see StackLayoutPanel
  */
 public class StackPanel extends ComplexPanel implements InsertPanel {
   private static final String DEFAULT_STYLENAME = "gwt-StackPanel";
diff --git a/user/src/com/google/gwt/user/client/ui/TabPanel.java b/user/src/com/google/gwt/user/client/ui/TabPanel.java
index 6454d3d..a6e3a26 100644
--- a/user/src/com/google/gwt/user/client/ui/TabPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/TabPanel.java
@@ -31,6 +31,11 @@
  * associated with them. The tabs can contain arbitrary HTML.
  * 
  * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link TabLayoutPanel} instead.
+ * </p>
+ * 
+ * <p>
  * <img class='gallery' src='TabPanel.png'/>
  * </p>
  * 
@@ -53,6 +58,8 @@
  * <h3>Example</h3>
  * {@example com.google.gwt.examples.TabPanelExample}
  * </p>
+ * 
+ * @see TabLayoutPanel
  */
 
 //Cannot do anything about tab panel implementing TabListener until next release.
diff --git a/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java b/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
index 822e02e..501120a 100644
--- a/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/VerticalSplitPanel.java
@@ -32,6 +32,11 @@
  * scrollbars when necessary.
  * 
  * <p>
+ * This widget will <em>only</em> work in quirks mode. If your application is in
+ * Standards Mode, use {@link SplitLayoutPanel} instead.
+ * </p>
+ * 
+ * <p>
  * <img class='gallery' src='VerticalSplitPanel.png'/>
  * </p>
  * 
@@ -40,6 +45,8 @@
  * <li>.gwt-VerticalSplitPanel { the panel itself }</li>
  * <li>.gwt-VerticalSplitPanel vsplitter { the splitter }</li>
  * </ul>
+ * 
+ * @see SplitLayoutPanel
  */
 public final class VerticalSplitPanel extends SplitPanel {
   /**
diff --git a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
index 75007e9..2d772b6 100644
--- a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
+++ b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
@@ -1,10 +1,9 @@
-<!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.   -->
+<!doctype html>
+<!-- The DOCTYPE declaration above will set the    -->
+<!-- browser's rendering engine into               -->
+<!-- "Standards Mode". Replacing this declaration  -->
+<!-- with a "Quirks Mode" doctype may lead to some -->
+<!-- differences in layout.                        -->
 
 <html>
   <head>
diff --git a/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc b/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc
index e3871ed..ac49326 100644
--- a/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc
+++ b/user/src/com/google/gwt/user/tools/JUnit-dev.launchsrc
@@ -12,6 +12,6 @@
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;@gwtDevPath&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
 </listAttribute>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@moduleShortName"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-logLevel WARN&quot; -Xmx256M"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-standardsMode -logLevel WARN&quot; -Xmx256M"/>
 <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
 </launchConfiguration>
diff --git a/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc b/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc
index 9e5047a..d01342a 100644
--- a/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc
+++ b/user/src/com/google/gwt/user/tools/JUnit-prod.launchsrc
@@ -12,6 +12,6 @@
 <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;@gwtDevPath&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
 </listAttribute>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@moduleShortName"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-prod -logLevel WARN -out www-test&quot; -Xmx256M"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-prod -standardsMode -logLevel WARN -out www-test&quot; -Xmx256M"/>
 <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
 </launchConfiguration>
diff --git a/user/src/com/google/gwt/user/tools/project.ant.xmlsrc b/user/src/com/google/gwt/user/tools/project.ant.xmlsrc
index 47ecdd9..7dc7f54 100644
--- a/user/src/com/google/gwt/user/tools/project.ant.xmlsrc
+++ b/user/src/com/google/gwt/user/tools/project.ant.xmlsrc
@@ -70,7 +70,7 @@
     <mkdir dir="reports/htmlunit.dev" />
     <junit fork="yes" printsummary="yes" haltonfailure="yes">
       <jvmarg line="-Xmx256m" />
-      <sysproperty key="gwt.args" value="-logLevel WARN" />
+      <sysproperty key="gwt.args" value="-standardsMode -logLevel WARN" />
       <sysproperty key="java.awt.headless" value="true" />
       <classpath>
         <pathelement location="src" />
@@ -92,7 +92,7 @@
     <mkdir dir="reports/htmlunit.prod" />
     <junit fork="yes" printsummary="yes" haltonfailure="yes">
       <jvmarg line="-Xmx256m" />
-      <sysproperty key="gwt.args" value="-prod -logLevel WARN -out www-test" />
+      <sysproperty key="gwt.args" value="-prod -standardsMode -logLevel WARN -standardsMode -out www-test" />
       <sysproperty key="java.awt.headless" value="true" />
       <classpath>
         <pathelement location="src" />
diff --git a/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html b/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
index e30fb7b..68dc220 100644
--- a/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
+++ b/user/test/com/google/gwt/i18n/public_es_AR/junit-standards.html
@@ -1,3 +1,4 @@
+<!doctype html>
 <!--
 Copyright 2008 Google Inc.
 
diff --git a/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html b/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
index 0de069d..56df915 100644
--- a/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
+++ b/user/test/com/google/gwt/i18n/public_es_MX/junit-standards.html
@@ -1,3 +1,4 @@
+<!doctype html>
 <!--
 Copyright 2008 Google Inc.