diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-08 11:06:13 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-08 11:06:13 +0300 |
commit | 0c34d82bf947439e9ad9513c9758fb753425c5e4 (patch) | |
tree | 9a3cd443191b76099d906d38c0306b8687de6aa1 /server | |
parent | df56ca4ecbc9ea5241159008f49849eae8977001 (diff) | |
download | vaadin-framework-0c34d82bf947439e9ad9513c9758fb753425c5e4.tar.gz vaadin-framework-0c34d82bf947439e9ad9513c9758fb753425c5e4.zip |
Reverted back to Transitional Doctype #8294
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/BootstrapHandler.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java index 11a6484f9b..a4aac2b310 100644 --- a/server/src/com/vaadin/server/BootstrapHandler.java +++ b/server/src/com/vaadin/server/BootstrapHandler.java @@ -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") |