Description

The comment form templates in contrib/comments/templates/comments don't validate as XHTML 1.0 Strict (don't know if they'd validate in Transitional) due to the lack of a block-level container for the hidden input fields.

This seems to be a problem again. The hidden fields produced by the template "form.html" in django.contrib.comments.templates do not validate with XHTML Strict because they are inline elements without a block-level container.

We are currently standardised on XHTML for all templates/forms, but not necessarily XHTML Strict - some existing templates use Transitional, and this is less likely to cause problems with content. So I will modify this patch to use XHTML Transitional doctypes. Also, I'll use div instead of p for hidden element, since a plain 'div' is less likely than 'p' to have a margin set that might cause unsightly gaps.