...

View Full Version : disecting validator cleanup



sixrfan
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.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pooltees.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&ss=1&outline=1&verbose=1

please advise. thanks!

Excavator
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-
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="">DESIGNS ▼</a>
<ul>
<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>
</ul>
</li>
<li><a href="/products.php?cat=26">Mens Gear ▼</a>
<ul>
<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>
</ul>
</li>
<li><a href="/products.php?cat=27">Womens Gear ▼</a>
<ul>
<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>
</ul>
</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>
</ul>

sixrfan
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.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pooltees.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&ss=1&outline=1&verbose=1#line-99

please advise. thanks!

Excavator
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 />

sixrfan
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?

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

Excavator
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...

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

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pooltees.com%2F&charset=(detect+automatically)&doctype=Inline&ss=1&outline=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.654#line-188

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>
<noscript>
<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>
</noscript>


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!

Excavator
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;

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

Excavator
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 :(

sixrfan
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???

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum