[wp-trac] [WordPress Trac] #5120: _wp_unfiltered_html_comment
breaks XHTML validity
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 30 12:56:45 GMT 2007
#5120: _wp_unfiltered_html_comment breaks XHTML validity
---------------------+------------------------------------------------------
Reporter: jrawle | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.2.3
Severity: normal | Keywords:
---------------------+------------------------------------------------------
When a user is logged in, the comment_form hook causes a hidden input
field containing _wp_unfiltered_html_comment to be added to the page. In
many themes, including the default theme, the comment_form action is
within the <form> elements, but outside of any <p> or <div>. This is not
valid in XHTML.
One solution would be to move the do_action to inside the preceding
paragraph, which already contains the comment_post_ID hidden field.
However, this may cause problems with plugins that assume it is outside of
any paragraph or div.
--
Ticket URL: <http://trac.wordpress.org/ticket/5120>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list