_wp_unfiltered_html_comment causes warning in XHTML1.0 Strict
-
I have chosen to use XHTML1.0 Strict on my pages. The use of _xxx as a name attribute causes a warning for this DTD. If you’re a validation nazi like me, this simply won’t do. I see no reason why the beginning underlines can’t be removed. There are two references to _wp_unfiltered_html_comment in the source, for example:
grep -rn "_wp_unfiltered" * wp-comments-post.php:39: if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) { wp-includes/comment-template.php:610: wp_nonce_field('unfiltered-html-comment_' . $post->ID, '_wp_unfiltered_html_comment', false);
There may be more things like this, but I have yet to have trouble with them. I have simply removed the leading underscores and pages are validating in the green again.
Perhaps this simple change can be committed for 2.5.2?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘_wp_unfiltered_html_comment causes warning in XHTML1.0 Strict’ is closed to new replies.