summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael[tm] Smith <mike@w3.org>2015-07-12 17:30:10 +0900
committerMichael[tm] Smith <mike@w3.org>2015-07-12 17:31:03 +0900
commit81a0aedac6fa74cf81f0e6b9902decea88c9e877 (patch)
tree200faa341512b8aef7c696fede8e558c28f78af6
parent65d7acda7482a3401bbff278c286f09bd8f8b03d (diff)
downloadmarkup-validator-81a0aedac6fa74cf81f0e6b9902decea88c9e877.zip
markup-validator-81a0aedac6fa74cf81f0e6b9902decea88c9e877.tar.gz
markup-validator-81a0aedac6fa74cf81f0e6b9902decea88c9e877.tar.bz2
Inform file-upload users about Nu Html Checker.
This is a companion to PR #1.
-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 75a52a9..228ad3a 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -1569,6 +1569,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