Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Validator Bug 4342
Wednesday, September 5th, 2007 at 2:11:17am UTC 

  1. ### Eclipse Workspace Patch 1.0
  2. #P validator
  3. Index: share/templates/en_US/table.tmpl
  4. ===================================================================
  5. RCS file: /sources/public/validator/share/templates/en_US/table.tmpl,v
  6. retrieving revision 1.28
  7. diff -u -r1.28 table.tmpl
  8. --- share/templates/en_US/table.tmpl    7 May 2007 19:17:58 -0000   1.28
  9. +++ share/templates/en_US/table.tmpl    5 Sep 2007 02:08:45 -0000
  10. @@ -36,7 +36,8 @@
  11.      </tr>
  12.      <tr>
  13.  <TMPL_IF NAME="is_upload">
  14. -      <th>File:</th><td colspan="2"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></td>
  15. +      <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">
  16. +</TMPL_LOOP></textarea></td>
  17.  <TMPL_ELSE>
  18.        <th><label title="Address of Page to Validate" for="uri">Address</label>:</th>
  19.        <td colspan="2"><input type="text" id="uri" name="uri" value="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" size="50" /></td>
  20. @@ -53,26 +54,21 @@
  21.      <tr><th><TMPL_VAR NAME="name" ESCAPE="HTML">:</th><td colspan="2"><TMPL_VAR NAME="value" ESCAPE="HTML" DEFAULT="(undefined)"></td></tr>
  22.    </TMPL_LOOP>
  23.  </TMPL_IF>
  24. -<TMPL_IF NAME="is_upload">
  25. -    <tr><th>Encoding:</th><td colspan="2"><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td></tr>
  26. -    <tr><th>Doctype:</th><td colspan="2"><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td></tr>
  27. +<TMPL_IF NAME="file_charset">
  28. +  <tr>
  29. +    <th><label title="Character Encoding" for="charset">Encoding</label>:</th>
  30. +    <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td>
  31. +  </tr>
  32.  <TMPL_ELSE>
  33. -  <TMPL_IF NAME="file_charset">
  34. -    <tr>
  35. -      <th><label title="Character Encoding" for="charset">Encoding</label>:</th>
  36. -      <td><TMPL_VAR NAME="file_charset" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_charset.tmpl"></td>
  37. -    </tr>
  38. -  <TMPL_ELSE>
  39. -    <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr>
  40. -  </TMPL_IF>
  41. -  <TMPL_IF NAME="file_version">
  42. -    <tr>
  43. -      <th><label for="doctype" title="Document Type">Doctype</label>:</th>
  44. -      <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td>
  45. -    </tr>
  46. -  <TMPL_ELSE>
  47. -    <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr>
  48. -  </TMPL_IF>
  49. +  <tr><th>Encoding:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_charset.tmpl"></td></tr>
  50. +</TMPL_IF>
  51. +<TMPL_IF NAME="file_version">
  52. +  <tr>
  53. +    <th><label for="doctype" title="Document Type">Doctype</label>:</th>
  54. +    <td><TMPL_VAR NAME="file_version" ESCAPE="HTML"></td><td><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td>
  55. +  </tr>
  56. +<TMPL_ELSE>
  57. +  <tr><th>Doctype:</th><td colspan="2"><TMPL_INCLUDE NAME="popup_doctype.tmpl"></td></tr>
  58.  </TMPL_IF>
  59.  <TMPL_IF NAME="root_element">
  60.    <tr>
  61. @@ -98,7 +94,6 @@
  62.  </TMPL_IF>
  63.    </table>
  64.  
  65. -<TMPL_UNLESS NAME="is_upload">
  66.          <fieldset id="revalidate_opts">
  67.                   <legend>Options</legend>
  68.  
  69. @@ -149,8 +144,5 @@
  70.          </p>
  71.          <div id="revalidate_button" class="submit_button"><input type="submit" value="Revalidate" title="Validate this document again" /></div>
  72.    </fieldset>
  73. -</TMPL_UNLESS>
  74.  </form>
  75.  </TMPL_IF>
  76. Index: httpd/cgi-bin/check
  77. ===================================================================
  78. RCS file: /sources/public/validator/httpd/cgi-bin/check,v
  79. retrieving revision 1.559
  80. diff -u -r1.559 check
  81. --- httpd/cgi-bin/check 3 Sep 2007 06:57:41 -0000        1.559
  82. +++ httpd/cgi-bin/check 5 Sep 2007 02:08:45 -0000
  83. @@ -961,8 +961,7 @@
  84.  
  85.  $template->param(file_warnings => $File->{Warnings});
  86.  $template->param(tidy_output => $File->{'Tidy'});
  87. -$template->param(file_source => &source($File))
  88. -  if $template->param('opt_show_source');
  89. +$template->param(file_source => &source($File));
  90.  #$template->param('opt_show_esis' => TRUE)
  91.  #  if $File->{Opt}->{'Show ESIS'};
  92.  #$template->param('opt_show_raw_errors' => TRUE)

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right