Use HTML5 doctype when generating HTML.

llvm-svn: 49888
This commit is contained in:
Ted Kremenek 2008-04-18 03:37:38 +00:00
parent 89e6a9b98c
commit a3d02636ef
1 changed files with 2 additions and 3 deletions

View File

@ -254,9 +254,8 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
// Generate header // Generate header
R.InsertCStrBefore(StartLoc, R.InsertCStrBefore(StartLoc,
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" " "<!doctype html>\n" // Use HTML 5 doctype
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">" "<html>\n<head>\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n"
"<style type=\"text/css\">\n" "<style type=\"text/css\">\n"
" body { color:#000000; background-color:#ffffff }\n" " body { color:#000000; background-color:#ffffff }\n"
" body { font-family:Helvetica, sans-serif; font-size:10pt }\n" " body { font-family:Helvetica, sans-serif; font-size:10pt }\n"