Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24457/templates/default
Modified Files:
commentform.tpl
Log Message:
use label tags for accessibility conformance
Index: commentform.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/default/commentform.tpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- commentform.tpl 30 Nov 2004 11:27:57 -0000 1.3
+++ commentform.tpl 20 Dec 2004 14:18:10 -0000 1.4
@@ -4,29 +4,29 @@
<div><input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}" /></div>
<table border="0" width="100%" cellpadding="3">
<tr>
- <td class="serendipity_commentsLabel">{$CONST.NAME}</td>
- <td class="serendipity_commentsValue"><input type="text" name="serendipity[name]" value="{$commentform_name}" size="30" /></td>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_name">{$CONST.NAME}</label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_name" name="serendipity[name]" value="{$commentform_name}" size="30" /></td>
</tr>
<tr>
- <td class="serendipity_commentsLabel">{$CONST.EMAIL}</td>
- <td class="serendipity_commentsValue"><input type="text" name="serendipity[email]" value="{$commentform_email}" /></td>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_email">{$CONST.EMAIL}</label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_email" name="serendipity[email]" value="{$commentform_email}" /></td>
</tr>
<tr>
- <td class="serendipity_commentsLabel">{$CONST.HOMEPAGE}</td>
- <td class="serendipity_commentsValue"><input type="text" name="serendipity[url]" value="{$commentform_url}" /></td>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_url" name="serendipity[url]" value="{$commentform_url}" /></td>
</tr>
<tr>
- <td class="serendipity_commentsLabel">{$CONST.IN_REPLY_TO}</td>
+ <td class="serendipity_commentsLabel"><label for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label></td>
<td class="serendipity_commentsValue">{$commentform_replyTo}</td>
</tr>
<tr>
- <td class="serendipity_commentsLabel">{$CONST.COMMENT}</td>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_comment">{$CONST.COMMENT}</label></td>
<td class="serendipity_commentsValue">
- <textarea rows="10" cols="40" name="serendipity[comment]">{$commentform_data}</textarea><br />
+ <textarea rows="10" cols="40" id="serendipity_commentform_comment" name="serendipity[comment]">{$commentform_data}</textarea><br />
{serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
</td>
</tr>
|