Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

XHTML Strict Validation Error, Possibly from comments.php


  #1  
Old Sep 9, 2009, 01:57 PM
cyboc
 
8 posts · Sep 2009
I'm running Wordpress 2.8.4 with Atahualpa 3.4.1. I'm getting XHTML strict validation errors on http://validator.w3.org, which seem to be related to comments.php. Here's the error:

Quote:
Error Line 501, Column 112: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…d_html_comment" value="a6b33afe5f"
I traced that to this snippet of XHTML:
HTML Code:
<!-- Comment Textarea -->
<p><textarea name="comment" id="comment" rows="10" cols="10" tabindex="4"></textarea></p>
<input type="hidden" id="_wp_unfiltered_html_comment" name="_wp_unfiltered_html_comment" value="a6b33afe5f" />
...		
<!-- Submit -->
...
That XHTML seems to be generated by this php snippet in the theme's comments.php:
PHP Code:
<!-- Comment Textarea -->
<p><textarea name="comment" id="comment" rows="10" cols="10" tabindex="4"></textarea></p>
<?php do_action('comment_form'$post->ID); ?>

<!-- Submit -->
I think the generated "input" element needs to be wrapped with a block element such as "p", "div", "fieldset", etc. I think either comments.php should wrap "<?php do_action('comment_form', $post->ID); ?>" with such an element or the do_action code should do it.

What is the best workaround for now?

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 03:52 AM
[SOLVED] Sociable plugin and XHTML Strict Validation cyboc Plugins & Atahualpa 1 Sep 19, 2009 10:16 AM
Fatal Error Line 63 theme.php maguai Atahualpa 3 Wordpress theme 2 Aug 23, 2009 01:41 PM
Change theme code header from XHTML 1.0 Strict to XHTML 1.0 Transitional? Mikii New Versions, & Updating 2 Jul 19, 2009 11:34 AM
PHP Error peterkb Header configuration & styling 4 Jun 18, 2009 10:38 AM


All times are GMT -6. The time now is 01:46 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.