[thelist] <noscript> causing validation errors

Brian Cummiskey Brian at hondaswap.com
Mon Feb 2 05:47:37 CST 2004


well, like the subject says, my <noscript> tags are giving me my only 2 
validation errors on xhtml 1.0.

simple code, that if js is disabled, it displays a dynamic image/link 
combo instead.

<div id="ad">
	<script type="text/javascript" 
src="/ads/adjs.php?what=zone:11&amp;target=_blank&amp;withText=0"></script>
	<noscript>
	<a href="/ads/adclick.php" title="Sponsor"><img 
src="/ads/adview.php?what=zone:11&amp;target=blank&amp;withText=0" 
alt="Sponsor" /></a>
	</noscript>
</div>

the error returned is:

  document type does not allow element "a" here; missing one of "p", 
"h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", 
"ins", "del" start-tag

...ck.php" title="Sponsor"><img src="/ads/adview.php?what=zone:11&...
                          ^

This isn't text or a paragraph or anything like that, so why is it 
calling for a text tag?



More information about the thelist mailing list