diff test/test_cgi.py @ 8281:669dfccca898

issue2551391 - checkboxes and radiobutton inputs get wrong id's. Actually it breaks automatic id assignment for all inputs. Inputs now get an automatic id assignment that matches the name. It can be overridden by supplting an id parameter in the call to the field() method. This is also a partial fix for issue1513369. I think it obsoletes the changes to templating.py.
author John Rouillard <rouilj@ieee.org>
date Thu, 16 Jan 2025 02:32:58 -0500
parents 05d8806b25ad
children b07165add61b
line wrap: on
line diff
--- a/test/test_cgi.py	Sun Jan 12 20:21:57 2025 -0500
+++ b/test/test_cgi.py	Thu Jan 16 02:32:58 2025 -0500
@@ -950,7 +950,7 @@
           <p>deferred</p>
           <p>admin, anonymous</p>
           <p></p>
-          <p><input name="superseder" size="30" type="text" value="5000"></p>
+          <p><input id="superseder" name="superseder" size="30" type="text" value="5000"></p>
          </body>
         </html>
         """.strip ())

Roundup Issue Tracker: http://roundup-tracker.org/