diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 03:37:38 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 03:37:38 +0000 |
commit | 38941b5b545ba68fa6d723a4123eec8deb7f5e5d (patch) | |
tree | ca1723a0966d251c6a2a19dca602e1e8f433132d /lib/Rewrite/HTMLRewrite.cpp | |
parent | 329d2cc85919acd730e04429bcac112736cd4356 (diff) |
Use HTML5 doctype when generating HTML.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/HTMLRewrite.cpp')
-rw-r--r-- | lib/Rewrite/HTMLRewrite.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp index 422389bfb2..8074c8dc33 100644 --- a/lib/Rewrite/HTMLRewrite.cpp +++ b/lib/Rewrite/HTMLRewrite.cpp @@ -254,9 +254,8 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) { // Generate header R.InsertCStrBefore(StartLoc, - "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" " - "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">" - "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n" + "<!doctype html>\n" // Use HTML 5 doctype + "<html>\n<head>\n" "<style type=\"text/css\">\n" " body { color:#000000; background-color:#ffffff }\n" " body { font-family:Helvetica, sans-serif; font-size:10pt }\n" |