Hi,
template::widget::h5time and template::widget::h5date seem to be duplicating the html attribute values.
tcl code
ad_form -name demo {
} -form {
...
{activity_end_date:text(h5date),optional
{label "Ending date:"}
{html {id activity_end_date hello world}}
}
..
}
output
<input type="date" name="activity_end_date" value="" hello="world world" id="activity_end_date activity_end_date" pattern="[0-9]+-(1[0-2]|0[0-9])-(3[0-1]|[0-2][0-9])">
The values for the attributes hello and id are duplicated.
Debugging ->
There is one change in the template widget (procedure template::widget::h5date
) from a previous release (5.10.1b4). It uses dict set in the procedure and then a call to template::widget::input
at the end.
=> dict set attributes {*}$element(html)
versus in 5.10.1 , there is a call to the procedure ::template::widget::merge_tag_attributes
at the top which appends dict lappend tag_attributes
and then at the end calls template::widget::input
(which also calls ::template::widget::merge_tag_attributes
), which results in duplicate values.
These are the procedures that call "template::widget::input" and from reviewing the code would have the same issue with duplicate values for input attributes defined with html option
- template::widget::select_text
- template::widget::radio_text
- template::widget::checkbox_text
- template::widget::h5time
- template::widget::h5date
Thank you.
Regards,
Khy