]> source.dussan.org Git - vaadin-framework.git/commitdiff
Reverted back to Transitional Doctype #8294
authorJohn Ahlroos <john@vaadin.com>
Sat, 8 Sep 2012 08:06:13 +0000 (11:06 +0300)
committerJohn Ahlroos <john@vaadin.com>
Sat, 8 Sep 2012 08:06:13 +0000 (11:06 +0300)
server/src/com/vaadin/server/BootstrapHandler.java

index 11a6484f9bab7ea8b1eb850cb25b53868cad2e78..a4aac2b3101c9b0d8b2fac66410d46bde894b19d 100644 (file)
@@ -207,10 +207,12 @@ public abstract class BootstrapHandler implements RequestHandler {
 
         Document document = response.getDocument();
 
-        DocumentType doctype = new DocumentType("html", "", "",
+        DocumentType doctype = new DocumentType("html",
+                "-//W3C//DTD XHTML 1.0 Transitional//EN",
+                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd",
                 document.baseUri());
-
         document.child(0).before(doctype);
+        document.body().parent().attr("xmlns", "http://www.w3.org/1999/xhtml");
 
         Element head = document.head();
         head.appendElement("meta").attr("http-equiv", "Content-Type")