WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Validation Errors (17 posts)

  1. katie1
    Member
    Posted 8 years ago #

    Is it normal to generate 6 errors when attempting to validate my
    post markup with W3C using Spam Karma plugin & comment form?

    If so, do we just overlook all the errors its spitting out?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    This page has 19 errors:
    http://strictlyromance.com/articles/word-press/test-3/

    I run SK2, and when I validate I have 3:
    http://www.tamba2.org.uk/T2/archives/2005/12/29/oddness-in-the-news/
    none of which are due to SK2.

    If you fix the other stuff, the SK2 code will not appear to be an error.

    ==Fixed my 3 and SK2 is fine.

  3. katie1
    Member
    Posted 8 years ago #

    Thanks Podz, however you were looking at the wrong site. My apologies
    because I failed to give a URL.

    The URL is here:
    http://strictlyromance.com/test/articles/hello-world/

    I generate 6 errors. Do I still need to alter something?

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Did you run the checker in SK2 that checks the theme ?
    Does the theme validate itself ?
    Is the footer meant to be that way ? (It looks broken)

  5. katie1
    Member
    Posted 8 years ago #

    OK. SK2 gave me a whooping thumbs up on the theme, so that's ok.
    The theme itself validates as Strict, which is another thumbs up.

    The footer is supposed to be at the bottom, outside the main post
    page, just for something different I suppose.

    I really don't understand what OMITTAG NO means. How do I get around
    this? What am I suppose to fix so that it clears this page.

    Would you believe out of every page in this theme, only this page
    generates errors?

    Help, please.

  6. katie1
    Member
    Posted 8 years ago #

    Oh, I should have said: the theme validates, as well as the CSS
    with the very minor exception of .footer a:hover background
    color which I refuse to change from :transparent to a color.

    I don't want a color and that's a very minor issue.

  7. moshu
    Member
    Posted 8 years ago #

    Would you believe out of every page in this theme, only this page
    generates errors?

    Nope. Every single post view page has the same error: it seems the comments.php template has several errors in it.

  8. katie1
    Member
    Posted 8 years ago #

    Thanks Moshu - You're completely right. The comment form
    is generating errors on every single post page.

    Otherwise, all else is fine. How do I get around this? Do I just
    upload another comment form altogether?

    Your expertise would be really, really appreciated.

  9. You need to close the tag containing the submit button:

    <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment">

    should be

    <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />

    Fix that, and I think you'll find a lot of the other errors go away, too...

  10. moshu
    Member
    Posted 8 years ago #

    Since there are only 6-7 errors in that file I'd try to correct them as the validation site indicates.
    Uploading another comments.php file from another theme might also be a solution, though if it has different divs, then the stylesheet wouldn't apply to it.

  11. katie1
    Member
    Posted 8 years ago #

    Thanks, again moshu.

    I did sort of do that. I opened the default comment.php and copy
    and pasted the code from that php into my own comment.php overriding
    the error parts.

    I've trimmed the errors down to 1, which is inclusive in SK2

    That, I won't even attempt to fix.

    So if everyone doesn't mind that it spits out 1 error <script language="javascript" type="text/javascript"> then we're
    in business.

  12. moshu
    Member
    Posted 8 years ago #

    It doesn't bother me :)
    but in case you'd like to do something about it... here is an interesting reading:
    http://www.codingforums.com/showthread.php?t=26358

  13. katie1
    Member
    Posted 8 years ago #

    Thanks moshu, that was a great read. Very interesting on how one
    tackles javascript in xhtml.

    I'd seriously love to add <script language="JavaScript" type="application/x-javascript" src="myscript.js"></script> to SK2, but I greatly
    fear I'll fry my computer, along with my house.

    So, I won't fiddle with the plugin, and suffer the pains of invalidation.

    Thanks for your help. Superior as always :)

    K

  14. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I still run SK2 and have no validation issues at all.
    Are you uptodate with the version ?

  15. Ajay
    Member
    Posted 8 years ago #

    I noticed this:

    <div id="navigation" title="mainnavigation" />

    Remove the closing slash.

    The other error too should be solved in a similar manner.

  16. katie1
    Member
    Posted 8 years ago #

    @Ajay, sorry but you've lost me. I've searched all templates and
    I can't find that html in any of my navigations/columns.

    Maybe, you checked the site out when I was helping spencerp with
    his Andrea08 theme, and that might explain the no-present html

    Was the theme blue and white, the one you checked?

    @Podz, Sk2 final 2.0 is the version I have. I remember seeing
    a notification about an upgrade, but I can't be sure. I've just now
    checked the sk2 notice board on my site and I can't find any reference
    to any newer version.

    of course I could be wrong.
    I've also ran a SK2 theme check, and the theme was pronouced fit and hale.
    K

  17. Ajay
    Member
    Posted 8 years ago #

    Yup the one I checked was blue.

    I just checked again and you have only one error, and that seems to be with the code SK2 has added.

    Anyway, what you can do is find the code in the php file for sk2 (seems to be the javascript one) and remove the attribute language.

    Alternatively, you can change the doctype of your blog from 1.0 Strict to 1.0 Transistional. the language attribute is obsoleted in 1.0 Strict.

    My blog has SK2 and is set to 1.0 Transistional.

    Ohh.. the theme now is a dark maroon shade (Foto Viva Design ).

Topic Closed

This topic has been closed to new replies.

About this Topic