diff options
author | ot <ot@localhost> | 2007-09-05 08:14:33 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-09-05 08:14:33 +0000 |
commit | f321f42e1d23095780123a62f0c09f1120c5e837 (patch) | |
tree | 2cabf1e92be0c0435ecefcf04825660613038959 | |
parent | 1d7e2cac74bbf28da3f30a3c4eb137477bef2ee4 (diff) | |
download | markup-validator-f321f42e1d23095780123a62f0c09f1120c5e837.zip markup-validator-f321f42e1d23095780123a62f0c09f1120c5e837.tar.gz markup-validator-f321f42e1d23095780123a62f0c09f1120c5e837.tar.bz2 |
patch by Brett Bieber for Bug/Enhancement 4342
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4342
including the content for revalidation even when using upload or direct input.
-rwxr-xr-x | httpd/cgi-bin/check | 7 | ||||
-rw-r--r-- | share/templates/en_US/table.tmpl | 40 |
2 files changed, 19 insertions, 28 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 58209e0..7f2e8ea 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.559 2007-09-03 06:57:41 ot Exp $ +# $Id: check,v 1.560 2007-09-05 08:14:32 ot Exp $ # # Disable buffering on STDOUT! @@ -186,7 +186,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.559 $; + $VERSION = q$Revision: 1.560 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -961,8 +961,7 @@ if ($File->{Opt}->{Output} eq 'xml') { $template->param(file_warnings => $File->{Warnings}); $template->param(tidy_output => $File->{'Tidy'}); -$template->param(file_source => &source($File)) - if $template->param('opt_show_source'); +$template->param(file_source => &source($File)); #$template->param('opt_show_esis' => TRUE) # if $File->{Opt}->{'Show ESIS'}; #$template->param('opt_show_raw_errors' => TRUE) diff --git a/share/templates/en_US/table.tmpl b/share/templates/en_US/table.tmpl index c581233..6cb18a1 100644 --- a/share/templates/en_US/table.tmpl +++ b/share/templates/en_US/table.tmpl @@ -36,7 +36,8 @@ </tr> <tr> <TMPL_IF NAME="is_upload"> - <th>File:</th><td colspan="2"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></td> + <th>Direct Input:</th><td colspan="2"><textarea id="fragment" name="fragment" rows="12" cols="80"><TMPL_LOOP NAME="file_source"><TMPL_VAR NAME="file_source_line" ESCAPE="HTML"> +</TMPL_LOOP></textarea></td> <TMPL_ELSE> <th><label title="Address of Page to Validate" for="uri">Address</label>:</th> <td colspan="2"><input type="text" id="uri" name="uri" value="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" size="50" /></td> @@ -53,26 +54,21 @@ <tr><th><TMPL_VAR NAME="name" ESCAPE="HTML">:</th><td colspan="2"><TMPL_VAR NAME="value" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr> </TMPL_LOOP> </TMPL_IF> -<TMPL_IF NAME="is_upload"> - <tr><th>Encoding:</th><td colspan="2"><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td></tr> - <tr><th>Doctype:</th><td colspan="2"><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td></tr> +<TMPL_IF NAME="file_charset"> + <tr> + <th><label title="Character Encoding" for="charset">Encoding</label>:</th> + <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td> + </tr> <TMPL_ELSE> - <TMPL_IF NAME="file_charset"> - <tr> - <th><label title="Character Encoding" for="charset">Encoding</label>:</th> - <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td> - </tr> - <TMPL_ELSE> - <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr> - </TMPL_IF> - <TMPL_IF NAME="file_version"> - <tr> - <th><label for="doctype" title="Document Type">Doctype</label>:</th> - <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td> - </tr> - <TMPL_ELSE> - <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr> - </TMPL_IF> + <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr> +</TMPL_IF> +<TMPL_IF NAME="file_version"> + <tr> + <th><label for="doctype" title="Document Type">Doctype</label>:</th> + <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td> + </tr> +<TMPL_ELSE> + <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr> </TMPL_IF> <TMPL_IF NAME="root_element"> <tr> @@ -98,7 +94,6 @@ </TMPL_IF> </table> -<TMPL_UNLESS NAME="is_upload"> <fieldset id="revalidate_opts"> <legend>Options</legend> @@ -149,8 +144,5 @@ </p> <div id="revalidate_button" class="submit_button"><input type="submit" value="Revalidate" title="Validate this document again" /></div> </fieldset> - - -</TMPL_UNLESS> </form> </TMPL_IF> |