changeset 4341:61b60d54b591

diff action: make output valid html4.01
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 25 Sep 2008 17:47:46 +0200
parents 615b785f9a3f
children 2bd88d32a0a1 b3602f5e2038
files MoinMoin/action/diff.py
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Wed Sep 24 17:28:59 2008 +0200
+++ b/MoinMoin/action/diff.py	Thu Sep 25 17:47:46 2008 +0200
@@ -120,12 +120,12 @@
 
     # Revision list starts from 2...
     if oldrev == min(revlist):
-        disable_prev = u' disabled="true"'
+        disable_prev = u' disabled="disabled"'
     else:
         disable_prev = u''
 
     if newrev == max(revlist):
-        disable_next = u' disabled="true"'
+        disable_next = u' disabled="disabled"'
     else:
         disable_next = u''
 
@@ -135,13 +135,13 @@
     if request.user.may.revert(pagename):
         revert_html = """
  <td style="border:0">
-  <span style="text-align:center">
-   <form action="%s" method="get">
+  <form action="%s" method="get">
+   <div style="text-align:center">
     <input name="action" value="revert" type="hidden">
     <input name="rev" value="%d" type="hidden">
     <input value="%s" type="submit"%s>
-   </form>
-  </span>
+   </div>
+  </form>
  </td>
  """ % (page_url, rev2, _("Revert to this revision"), disable_next)
 
@@ -150,25 +150,25 @@
 <table class="diff">
 <tr>
  <td style="border:0">
-  <span style="text-align:left">
-   <form action="%s" method="get">
+  <form action="%s" method="get">
+   <div style="text-align:left">
     <input name="action" value="diff" type="hidden">
     <input name="rev1" value="%d" type="hidden">
     <input name="rev2" value="%d" type="hidden">
     <input value="%s" type="submit"%s>
-   </form>
-  </span>
+   </div>
+  </form>
  </td>
  %s
  <td style="border:0">
-  <span style="text-align:right">
-   <form action="%s" method="get">
+  <form action="%s" method="get">
+   <div style="text-align:right">
     <input name="action" value="diff" type="hidden">
     <input name="rev1" value="%d" type="hidden">
     <input name="rev2" value="%d" type="hidden">
     <input value="%s" type="submit"%s>
-   </form>
-  </span>
+   </div>
+  </form>
  </td>
 </tr>
 </table>