Error Message Feedback: noscript confusing nesting of <a>

Validating www.jeudejupe.com/gallery_copcopine.html

[ I am validating my site. I have one problem I think the validator is
wrong on, and one that I question what the XHTML goal was. The one that
is causing trouble is:
         <div class="thumb_img"
		style="background-image: url('pict.jpg');">
	  <noscript><a class="ns" href="#">
		<img src="pict.jpg" alt="" />&nbsp;&nbsp;
                 &nbsp;&nbsp;</a>
           </noscript>
	</div>

The validator complains about the <a> not being in a <div>. It clearly
is, but the <noscript> seems to throw it off. I am using this as I have
JS onmouseover, but when no JS, I use a CSS technique to get the same
effect. I would use the CSS technique only, except that I cannot
replicate the onerror behavior of image not loading (I do not know how
many images I have, as they can be dropped into the filesystem). I think
this is a bug in the validator.

The other problem/question is why noscript is not allowed in the head. I
want to use noscript to selectively include a CSS extension via link,
which means it has to be in the head. I think this is a very reasonable
use of noscript. It allows for JS vs. CSS techniques (where the CSS
technique is not as good) seamlessly.

Error was:
Error  Line 52 column 35: 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.]

Received on Saturday, 16 September 2006 00:36:10 UTC