summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--htdocs/style/results.css13
-rwxr-xr-xhttpd/cgi-bin/check3
-rw-r--r--share/templates/en_US/table.tmpl6
3 files changed, 22 insertions, 0 deletions
diff --git a/htdocs/style/results.css b/htdocs/style/results.css
index b201e6d..f096a8d 100644
--- a/htdocs/style/results.css
+++ b/htdocs/style/results.css
@@ -487,3 +487,16 @@ pre.outline {
line-height: 160%;
padding-left: 1.5em;
}
+
+.html5_warning {
+ text-align: center;
+ margin-bottom: 20px;
+ border: 1px solid #ccc;
+ padding: 6px;
+ background-color: #FFFFCC;
+}
+
+.html5_warning a {
+ font-weight: bold;
+ background-color: #FFFFCC;
+}
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 258332c..05532a4 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -1608,6 +1608,9 @@ sub fin_template ($$)
}
else {
$T->param(file_version => $File->{Version});
+ if ($File->{Version} eq "HTML5") {
+ $T->param(is_html5 => TRUE);
+ }
}
my ($num_errors, $num_warnings, $num_info, $reported_errors) =
&report_errors($File);
diff --git a/share/templates/en_US/table.tmpl b/share/templates/en_US/table.tmpl
index 1825be0..05b3d21 100644
--- a/share/templates/en_US/table.tmpl
+++ b/share/templates/en_US/table.tmpl
@@ -1,3 +1,9 @@
+<TMPL_IF NAME="is_html5">
+ <p class="html5_warning">Consider using the
+ <a href="http://validator.w3.org/nu/">W3C&#160;Nu&#160;Html&#160;Checker</a>
+ to validate HTML5 documents.</p>
+</TMPL_IF>
+
<TMPL_IF NAME="VALID">
<TMPL_IF NAME="is_tentative">
<h2 class="tentative_valid">This document was <em>Tentatively</em> checked as