Validation Errors
-
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?
-
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.
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?
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)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.
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.
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.
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.
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…
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.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.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=26358Thanks 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
I still run SK2 and have no validation issues at all.
Are you uptodate with the version ?I noticed this:
<div id="navigation" title="mainnavigation" />
Remove the closing slash.
The other error too should be solved in a similar manner.
@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 htmlWas 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
- The topic ‘Validation Errors’ is closed to new replies.