WordPress.org

Ready to get started?Download WordPress

Forums

Valid XHTML 1.0 Strict! (14 posts)

  1. alia
    Member
    Posted 9 years ago #

    i am wondering why i can't get my page validated XHTML Strict in the single post view. there is always the same error:
    ..... document type does not allow element "input" here; missing one of "p",.......
    where can i get a XHTML 1.0 Strict valid comments.php?
    or is it the "comments_template();" function that does the cheese?

    you can see the validation result here:
    http://validator.w3.org/check?uri=http%3A%2F%2Fadablog.solar-afrika.de%2F2005%2F07%2F23%2Flieber-besucher%2F
    the page is here:
    http://adablog.solar-afrika.de

    thx very much!

  2. Joshua Sigar
    Member
    Posted 9 years ago #

    just wrap that "input" with "p," or "div"

  3. alia
    Member
    Posted 9 years ago #

    that does not work.... i'm trying i'm triygn m'i ritry...

  4. flakkito
    Member
    Posted 9 years ago #

    Looks like you have a span tag that is incomplete.
    '95:
    96:
    <div class="metadata">27.07.2005 at 09:07 </span>
    97: </div><!--div metadata end-->
    98: </div><!--div ende jedes Kommentares-->'

    Try to fix that and check it out. Alot of times if you have one little mistake it will make the validator spit out a bunch of errors when really its only one thing.

    Good luck;)
    Rob

  5. alia
    Member
    Posted 9 years ago #

    i fixed it, but it still won't work.
    if i insert, instead of the hole comments.php stuff, simply an Potatoe tag, it is strict Xhtml.
    so i think the fault has to be in the comments. php or in the function itself... i dunno

  6. alia
    Member
    Posted 9 years ago #

    oh, i mean simply that i inserted < p > Potatoe < / p >, sorry.
    with that tag instead of the hole comments.php, the site is strict valid. What i am fuzzy about is, that i, if i insert some lines of strict written code in an strict xhtml document, how can it be that the two togoether give me a bad result.

    ps.:please excuse my english....

  7. flakkito
    Member
    Posted 9 years ago #

    Dont worry, your english is fine;) Try taking out the last </div> before </body>. I did that and it validated. Also your comment form is okay so the problem is elsewhere.

    so try changing:
    <div class="clr"></div>

    </div>
    </body>
    </html>

    to:
    <div class="clr"></div>

    </body>
    </html>

    See if that helps.

  8. alia
    Member
    Posted 9 years ago #

    my footer looks like this in the end:
    <div class="clr"></div>
    </div>
    <?php do_action('wp_footer'); ?>
    </body>
    </html>
    the last</div> tag is a layout element (ends the wrap)
    so if i cut that out, my page looks really Picasso!

    the error i do not get rid of ist an input type "hidden"...

  9. flakkito
    Member
    Posted 9 years ago #

    ok, I see....

    I put my comments.php here:

    http://pastebin.com/323420

    if you think the problem is with this file, compare it to mine. Let me know if this helps.

    Rob

  10. alia
    Member
    Posted 9 years ago #

    I got it! i got it!
    as i am not a coder or a webdesigner, i do not know why and what exactly is causing the fault w/in the commentsform.
    BUT: if i disable the StatTraq plugin (StatTraq 1.0a beta) ,
    i get strict Xhtml validated even in the commentsform.

    if anyone is able to reproduce the error, perhaps one should feed back the StatTraq team

  11. alia
    Member
    Posted 9 years ago #

    bump:
    is anyone able to reproduce the error?

  12. tomhanna
    Member
    Posted 9 years ago #

    http://wordpress.org/support/topic/34789

    "The official StatTraq is not compatible with WP v1.5.x. Try this version instead: http://www.adsworth.info/files/stattraq-for-1.5-2.zip"

    And plenty of other bugs when doing a search for "StatTraq". I even came across a thread where someone recommended to you an alternative stats plugin that doesn't cause problems with XHTML.

    http://wordpress.org/support/topic/40510

  13. alia
    Member
    Posted 9 years ago #

    yes sure, i started this other thread after i thought this one was finished.
    I am using WP-ShortStat since, but, it ist not nearly detailed information like Stattraq can give...

  14. alia
    Member
    Posted 9 years ago #

    OK, i tried your http://www.adsworth.info/files/stattraq-for-1.5-2.zip
    but there is still the same error again:
    there ist some INPUT TYPE="HIDDEN" that is not correctly inserted by Stattraq. I tried it with different comments.php, and there is always the same result...

    check it out here:
    http://validator.w3.org/check?uri=http%3A%2F%2Fadablog.solar-afrika.de%2F2005%2F08%2F11%2Fzollner-mofas-und-50-millionen-unsere-erste-woche-in-ouagadougou%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1

    i don't know. maybe it is my fault, maybe not...

Topic Closed

This topic has been closed to new replies.

About this Topic