Skip to content

Commit c822089

Browse files
author
Johannes Gijsbers
committed
Add an id_ prefix to all id's: they can not start with a number in HTML4/XHTML1.
1 parent 02b95b0 commit c822089

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

templates/classic/html/_generic.help.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@
3737
<th tal:repeat="prop props" tal:content="prop"></th>
3838
</tr>
3939
<tr tal:repeat="item batch">
40-
<td>
41-
<input type="checkbox" name="check"
42-
onclick="updatePreview();"
43-
tal:condition="python:start==0"
44-
tal:define="attr python:item[props[0]]"
45-
tal:attributes="value attr; id attr" />
46-
</td>
47-
<td tal:repeat="prop props">
48-
<label class="classhelp-label"
49-
tal:attributes="for python:item[props[0]]"
50-
tal:content="structure python:item[prop]"></label>
51-
</td>
40+
<tal:block tal:define="attr python:item[props[0]]">
41+
<td>
42+
<input type="checkbox" name="check"
43+
onclick="updatePreview();"
44+
tal:condition="python:start==0"
45+
tal:attributes="value attr; id string:id_$attr" />
46+
</td>
47+
<td tal:repeat="prop props">
48+
<label class="classhelp-label"
49+
tal:attributes="for string:id_$attr"
50+
tal:content="structure python:item[prop]"></label>
51+
</td>
52+
</tal:block>
5253
</tr>
5354
<tr>
5455
<th>&nbsp;<b>x</b></th>

0 commit comments

Comments
 (0)