Browse Source

Reverted back to Transitional Doctype #8294

tags/7.0.0.beta1
John Ahlroos 11 years ago
parent
commit
0c34d82bf9
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      server/src/com/vaadin/server/BootstrapHandler.java

+ 4
- 2
server/src/com/vaadin/server/BootstrapHandler.java View File



Document document = response.getDocument(); 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.baseUri());

document.child(0).before(doctype); document.child(0).before(doctype);
document.body().parent().attr("xmlns", "http://www.w3.org/1999/xhtml");


Element head = document.head(); Element head = document.head();
head.appendElement("meta").attr("http-equiv", "Content-Type") head.appendElement("meta").attr("http-equiv", "Content-Type")

Loading…
Cancel
Save