A bug in the validator...

Hi;

me thinks I've found a bug in the validator, it's either that or I've made
a mistake... and I don't make misstakes. ;)

On a more serious side... It's a very simple pice of "code" and I've even
verified it with other people just to make sure that it's not some stupid
mistake that I've been looking at for so long that I don't see it.

This is it (please ignore any "formating" the nice mailprogram might have
done to it):
<SCRIPT language="JavaScript" type="text/javascript">
<!-- 
var HTMLpic = '<IMG border="0"
src="http://validator.w3.org/images/vh40.gif" alt="Valid HTML 4.0!"
height="31" width="88">';
document.write('<A HREF="http://validator.w3.org/check?uri=' +
document.location.href + '">' + HTMLpic + '</A>');
var CSSpic = '<IMG border="0"
src="http://jigsaw.w3.org/css-validator/images/vcss.gif" alt="Valid CSS!"
height="31" width="88">';
document.write('<A HREF="http://jigsaw.w3.org/css-validator/validator?uri='
+ document.location.href + '&warning=0">' + CSSpic + '</A>');
// -->
</SCRIPT>

As you can see it's a simple JavaScript that improves the "this page
validates"-code so that you don't have to change it for every page. I did
this for to make it easier to maintain since I'm not happy with the
"design" of those pages yet. First I was going to do this using SSI but
that's not an option now that I've started to PGP-sign all my webpages. One
way to avoid this problem would be to use a separate js-file, but a bug is
a bug and I rather find out where it is before I work around it.

The webpage can be viewed at:
<http://www.svanstrom.com/www/old-index.html>

	/Tony
-- 
Per scientiam ad libertatem. ©1999 Tony L. Svanstrom

Received on Thursday, 27 May 1999 01:43:07 UTC