comparison 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
comparison
equal deleted inserted replaced
8276:8d3085b4d047 8281:669dfccca898
948 <p>New title</p> 948 <p>New title</p>
949 <p>urgent</p> 949 <p>urgent</p>
950 <p>deferred</p> 950 <p>deferred</p>
951 <p>admin, anonymous</p> 951 <p>admin, anonymous</p>
952 <p></p> 952 <p></p>
953 <p><input name="superseder" size="30" type="text" value="5000"></p> 953 <p><input id="superseder" name="superseder" size="30" type="text" value="5000"></p>
954 </body> 954 </body>
955 </html> 955 </html>
956 """.strip ()) 956 """.strip ())
957 957
958 def testXMLTemplate(self): 958 def testXMLTemplate(self):

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