View Full Version : disecting validator cleanup

12-20-2009, 08:11 PM
any idea how i fix the first four errors, which all seem to be the same type of error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag???? all my li's are within ul's so i'm not sure what the problem is.


please advise. thanks!

12-20-2009, 09:33 PM
Hello sixrfan,
Looks like one missing closing tag is causing those four errors? Don't know how that works.
Try this-
<li><a href="index.html">Home</a></li>
<li><a href="">DESIGNS ▼</a>
<li><a href="/products.php?cat=29">Joe Shark</a></li>
<li><a href="/products.php?cat=23">For Those About to Rack, We Salute You</a></li>
<li><a href="/products.php?cat=21">Homo-e-rack-tus</a></li>
<li><a href="/products.php?cat=10">Straight Pool Union</a></li>
<li><a href="/products.php?cat=13">NYC Pool Hustler</a></li>
<li><a href="/products.php?cat=15">Who Says Chicks Can't Shoot Pool</a></li>
<li><a href="/products.php?cat=14">Scotch Doubles</a></li>
<li><a href="/products.php?cat=12">Major League Hustling</a></li>
<li><a href="/products.php?cat=16">Shoot Pool Not People</a></li>
<li><a href="/products.php?cat=18">Miscue-angelo</a></li>
<li><a href="/products.php?cat=17">Got Chalk?</a></li>
<li><a href="/products.php?cat=19">Road Hustling</a></li>
<li><a href="/products.php?cat=22">Kiddie Pool Shark</a></li>
<li><a href="/products.php?cat=9">Mens - Drunk Pool</a></li>
<li><a href="/products.php?cat=30">Womens - Drunk Pool</a></li>
<li><a href="/products.php?cat=11">Jesus Safes</a></li>
<li><a href="/products.php?cat=26">Mens Gear ▼</a>
<li><a href="/products.php?cat=36">Mens T Shirts</a></li>
<li><a href="/products.php?cat=34">Long Sleeves and Sweatshirts</a></li>
<li><a href="/products.php?cat=37">Collar Golf Shirts</a></li>
<li><a href="/products.php?cat=35">Hats</a></li>
<li><a href="/products.php?cat=26">All Mens</a></li>
<li><a href="/products.php?cat=27">Womens Gear ▼</a>
<li><a href="/products.php?cat=33">Womens T Shirts</a></li>
<li><a href="/products.php?cat=31">Tank Tops</a></li>
<li><a href="/products.php?cat=32">Long Sleeves</a></li>
<li><a href="/products.php?cat=27">All Womens</a></li>
<li><a href="/products.php?cat=24">All Youth/Babies</a></li>
<li><a href="/products.php?cat=25">All Accessories</a></li>
<li class="last"><a href="/products.php?cat=28">All Clearance</a></li>

12-20-2009, 11:21 PM
thanks excavatar. how in the world did you pinpoint that that was missing? :confused:

regardless, maybe you can help with my next validator error as well. its now the top one on the list: Line 99, Column 121: end tag for element "a" which is not open i dont get it because i have properly opened and closed the a href...i think.


please advise. thanks!

12-21-2009, 12:55 AM
<li><a href="http://www.myspace.com/pooltees_dot_com" target="_blank" /><img src="pics/nav_thumbs/3.gif" alt="" /></a></li>

By using that /> , you are closing the a. When you follow it with </a> you close an anchor that is not open...because you've closed it with />

12-21-2009, 01:05 AM
thanks but then why isn't the validator also complaining about lines 100 to 107 which are all coded in the same fashion?

12-21-2009, 01:35 AM
You need to encode your ampersands (these introduce entities in XML.) Use &amp; in it's place.

12-21-2009, 02:11 AM
thanks but then why isn't the validator also complaining about lines 100 to 107 which are all coded in the same fashion?

Who knows? It's like that last one where it was really only the one mistake and it generated 4 or 5 errors. This time, 4 or 5 mistakes are only generating one error.
Fix the one it points out, run the updated code through it and see what you come up with...

12-21-2009, 03:22 AM
cool. making progress now.


so a little over half my remaining errors are from these few lines alone:

<script src="https://sealserver.trustkeeper.net/compliance/seal_js.php?code=w6oj3BWieJraVGclPlFEuih5pDGgvC&style=normal&size=105x54&language=en" type=""></script>
<a href="https://sealserver.trustkeeper.net/compliance/cert.php?code=w6oj3BWieJraVGclPlFEuih5pDGgvC&style=normal&size=105x54&language=en" target="hATW"><img src="https://sealserver.trustkeeper.net/compliance/seal.php?code=w6oj3BWieJraVGclPlFEuih5pDGgvC&style=normal&size=105x54&language=en" border="0" alt="Trusted Commerce"/></a>

this code puts that Trustwave link in my left nav bar. i copied it verbatim from my shopping cart instructions. what in the world do i do to fix these errors??? :( thanks!

12-21-2009, 04:15 AM
this code puts that Trustwave link in my left nav bar. i copied it verbatim from my shopping cart instructions. what in the world do i do to fix these errors??? :( thanks!

Like Apostropartheid says, you'll need to replace your ampersands with &amp;

12-21-2009, 08:24 PM
thanks! i did it! no errors! no errors!

12-21-2009, 08:40 PM
http://www.w3.org/Icons/valid-xhtml10 :thumbsup:

:( http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.pooltees.com%2F&profile=css21&usermedium=all&warning=1&lang=en :(

12-21-2009, 08:58 PM
crap!i didnt know there was a CSS validator. :(

apparently it doesnt like the asterisk in this code:

* {
outline: 0;
padding: 0;
margin: 0;

but i thought i need this code to fix alignment issues in IE???

12-22-2009, 02:05 AM
Uh, it says you have an error in line 191. There is no such thing as alink.

12-22-2009, 05:26 AM
oh, i see. i totally misread that. thanks!