Roundup Tracker - Issues

Message7642

Author rouilj
Recipients rouilj
Date 2022-09-04.21:42:11
Message-id <1662327731.59.0.881481715971.issue2551231@roundup.psfhosted.org>
In-reply-to
if classhelp is called with html_args={"class": "some_class"}, the output
has two class attributes which is invalid html.

The returned string is generated by:

        return '<a class="classhelp" data-helpurl="%s" data-width="%s" data-height="%s" 
href="%s" onclick="%s" %s>%s</a>' % 
               (help_url, width, height,
                help_url, onclick, self.cgi_escape_attrs(**html_kwargs),
                self._(label))

which hard codes a class="classhelp". Better way to handle this is to
check html_kwargs for 'class' key and append the value (with a space)
to a new class_value variable (initialized to "classhelp"), then remove
the class element from html_kwargs.

Replace the hard coded class value for the new class_value variable.
History
Date User Action Args
2022-09-04 21:42:11rouiljsetrecipients: + rouilj
2022-09-04 21:42:11rouiljsetmessageid: <1662327731.59.0.881481715971.issue2551231@roundup.psfhosted.org>
2022-09-04 21:42:11rouiljlinkissue2551231 messages
2022-09-04 21:42:11rouiljcreate