Msg#: 4403241 posted 6:16 pm on Jan 3, 2012 (gmt 0)
I am currently checking my website to see how valid it is to xhtml 1.0 transitional using W3C markup validator. On one page I had 1 error, a missing closing </ul> tag. I thought cool thats easy to fix, I checked the code and it was missing so I put the closing tag in and revalidated, however much to my surprise for the same page I now have 8 different errors, crazy errors like attributes contruct errors, tag mismatch errors and extra content at end of document errors.
I use a CMS and some of the tag mismatch errors would be in the CMS theme code and i just dont see them and these errors dont replicate on other pages and they should as the theme is site wide.
I am confused at why fixing an error would bring up more errors which are not there, at least I cannot see them and the validator does not see them on other pages.
Is the validator broken, or is something else throwing these errors?
Msg#: 4403241 posted 6:56 pm on Jan 3, 2012 (gmt 0)
Well I think i have fixed the validation errors, turns out there was an attributes construct error and possibly that was causing the mismatch errors, basiclaly there was no space between rel="" and class="" once i fixed that i got the page to validate.
I would still love to know why these errors never showed in the validator until i fixed the closing </ul> tag.
Msg#: 4403241 posted 10:42 pm on Jan 3, 2012 (gmt 0)
Getting over a hundred errors is good. It means you made one mistake near the beginning; once you fix it, all the others will disappear. Getting a dozen or two errors is bad. It means you made a dozen or two separate mistakes :)
My personal record is 45,000 bona fide errors. But that wasn't from a w3c validator; it was from a specialized tool that also looked at things like incorrect punctuation and capitalization, unfamiliar letters and mismatched brackets. In a 500-page work produced by the Early English Text Society, this kind of error can mount up very very fast. Fortunately you can also ignore the report very very fast ;)
Beware of Tidy. I have never found a version that simply reports errors without "fixing" them, no matter how emphatically I tell it not to change anything.
You can also get interesting results in "validate by upload" if your finger slips and you feed in a plain-text file instead of HTML.