]> granicus.if.org Git - clang/commitdiff
Use HTML5 doctype when generating HTML.
authorTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 03:37:38 +0000 (03:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 18 Apr 2008 03:37:38 +0000 (03:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49888 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/HTMLRewrite.cpp

index 422389bfb23174d71b562b20d56eda4a71fdf9ca..8074c8dc33dfcf8799332ccaf17fc2e2cec6651b 100644 (file)
@@ -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"