[Piglit] [PATCH v2 8/8] html: Use XHTML 1.0 Strict.

Dylan Baker baker.dylan.c at gmail.com
Tue Apr 30 10:34:44 PDT 2013


From: Kenneth Graunke <kenneth at whitecape.org>

We weren't specifying a DTD, which made validator.w3.org angry.  There's
no reason not to be strict or use SGML-based HTML, so go with XHTML.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 templates/index.html | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/templates/index.html b/templates/index.html
index 400dde3..00a47bb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,6 +1,9 @@
-<html>
+<?xml version="1.0" encoding="UTF-8"?>
+<!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">
 	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 		<title>Result summary </title>
 		<link rel="stylesheet" href="index.css"/>
 	</head>
-- 
1.8.1.4



More information about the Piglit mailing list