summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2008-11-14 16:22:52 +0000
committerot <ot@localhost>2008-11-14 16:22:52 +0000
commitfafa0b3197a87e99c9bbf4aaa56eb6e333bd4494 (patch)
tree98394ae8a07dc23929ae5f198f5cbfbd9336d67e
parent33d97a2226e1d02573d34f0db5fc79428e49f857 (diff)
downloadmarkup-validator-fafa0b3197a87e99c9bbf4aaa56eb6e333bd4494.zip
markup-validator-fafa0b3197a87e99c9bbf4aaa56eb6e333bd4494.tar.gz
markup-validator-fafa0b3197a87e99c9bbf4aaa56eb6e333bd4494.tar.bz2
adding note about experimentalness of HTML5 conformance checking support
-rwxr-xr-xhttpd/cgi-bin/check8
-rw-r--r--share/templates/en_US/valid.tmpl8
-rw-r--r--share/templates/en_US/warnings.tmpl16
3 files changed, 26 insertions, 6 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 6a84507..d119f56 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.605 2008-09-19 20:55:21 ville Exp $
+# $Id: check,v 1.606 2008-11-14 16:22:51 ot Exp $
#
# Disable buffering on STDOUT!
@@ -191,7 +191,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.605 $;
+ $VERSION = q$Revision: 1.606 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -817,6 +817,10 @@ if (&is_xml($File)) {
if (($File->{DOCTYPE} eq "HTML5") or ($File->{DOCTYPE} eq "XHTML5")) {
if ($CFG->{External}->{HTML5}) {
$File = &html5_validate($File);
+ &add_warning('W00', {
+ W00_experimental_name => "HTML5 Conformance Checker",
+ W00_experimental_URI => "feedback.html"
+ });
}
else {
$File->{'Error Flagged'} = TRUE;
diff --git a/share/templates/en_US/valid.tmpl b/share/templates/en_US/valid.tmpl
index 332b1e3..71a3ad9 100644
--- a/share/templates/en_US/valid.tmpl
+++ b/share/templates/en_US/valid.tmpl
@@ -32,8 +32,8 @@
<TMPL_IF NAME="is_tentative">
was <em>tentatively</em> checked as <TMPL_VAR NAME="file_version" ESCAPE="HTML">.
This means that with the use of some fallback or override mechanism,
- we successfully performed a formal validation using an SGML or XML
- Parser. In other words, the document would validate as
+ we successfully performed a formal validation using an SGML, HTML5 and/or XML
+ Parser(s). In other words, the document would validate as
<TMPL_VAR NAME="file_version" ESCAPE="HTML"> if you changed the markup
to match the changes we have performed automatically, but
<strong>it will not be valid until you make these changes</strong>.
@@ -48,8 +48,8 @@
<TMPL_ELSE>
This means that the resource in question identified itself as
"<TMPL_VAR NAME="file_version" ESCAPE="HTML">" and that we successfully
- performed a formal validation using an SGML or XML Parser (depending on
- the markup language used).
+ performed a formal validation using an SGML, HTML5 and/or XML
+ Parser(s) (depending on the markup language used).
</TMPL_IF>
</TMPL_IF>
</p>
diff --git a/share/templates/en_US/warnings.tmpl b/share/templates/en_US/warnings.tmpl
index 8aeb485..465cef5 100644
--- a/share/templates/en_US/warnings.tmpl
+++ b/share/templates/en_US/warnings.tmpl
@@ -3,6 +3,20 @@
to check these potential issues, and, if necessary, fix them and re-validate the document.</p>
<ol id="warnings">
+<TMPL_IF NAME="W00">
+ <li class="msg_warn" id="W00">
+ <p><span class="err_type"><img src="images/info_icons/info.png" alt="Info" title="Info" /></span> <span class="msg"> Using experimental feature:
+ <em><TMPL_VAR NAME="W00_experimental_name" ESCAPE="HTML"></em>.</span></p>
+ <p>The validator checked your document with an experimental feature:
+ <em><TMPL_VAR NAME="W00_experimental_name" ESCAPE="HTML"></em>. This feature has been
+ made available for your convenience, but be aware that it may be unreliable, or not perfectly
+ up to date with the latest development of some cutting-edge technologies. If you find any issue
+ with this feature, please <a href="<TMPL_VAR NAME="W00_experimental_URI" ESCAPE="HTML">">report them</a>. Thank you.
+ </p>
+ </li>
+</TMPL_IF>
+
+
<TMPL_IF NAME="W01">
<li class="msg_warn" id="W01"><p><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Missing "<code>charset</code>" attribute for
"<code><TMPL_VAR NAME="W01_ct" ESCAPE="HTML"></code>" document.</span></p>
@@ -500,6 +514,8 @@ to check these potential issues, and, if necessary, fix them and re-validate the
</li>
</TMPL_IF>
+
+
<TMPL_IF NAME="W@@">
<li class="msg_warn" id="W@@">