[issue2551391] checkboxes and radiobutton inputs get wrong id's.
John Rouillard <[email protected]> Wed, 15 Jan 2025 04:15:22 +0000
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
New submission from John Rouillard:
When I was groveling through the template code, I came across this:
def _set_input_default_args(dic):
# 'text' is the default value anyway --
# but for CSS usage it should be present
dic.setdefault('type', 'text')
# useful e.g for HTML LABELs:
if 'id' not in dic:
try:
if dic['text'] in ('radio', 'checkbox'):
dic['id'] = '%(name)s-%(value)s' % dic
else:
dic['id'] = dic['name']
except KeyError:
pass
I think dic['text'] is wrong and dic['type'] was meant.
It looks like an attempt to create a series of
checkbox/radiobutton with unique id's.
Anybody have an alternate view?
----------
assignee: rouilj
components: Web interface
messages: 8271
nosy: rouilj
severity: normal
status: new
title: checkboxes and radiobutton inputs get wrong id's.
type: behavior
_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551391>
_________________________________________________