I found a bug in w3c validator service

This post is in english cause the subject of it considers much more people than just finns.

Today I was developing our Extranet and was trying to do it xhtml 1.1 strict.

Everything was going basically well. The site was exactly looking same with Opera 8.5, IE 6 and Firefox 1.0.6. OK – then the next part. I had to add the javascript -library to handle form validations and Ajax -stuff. I wrote in to head:

[script language="javascript" type="text/javascript" src="js/lib.js"], but didn’t remember to close the script -tag. OK. I tried to validate. The validator says that language=”javascript” is not allowed in xhtml 1.1 strict. So removed it and was happy – Cause the validator said: Congratulations, you are xhtml 1.1 strict.

But the problems just started. The extranet was looking great with Firefox, but empty with IE and Opera (Wait – only the page was empty, but html source was all there). Why I can’t see anything? But before I managed to find the error (That was: close the [/script]) I had copy and pasted all templates and stylesheets to other editor and saved them from utf-8 to iso-8859-1 format and cleaned almost anything that applied to the look. Validated, re-validated and wondered…

One think to wonder was that if I uploaded the local html with Firefoxes Web Debeloper toolbar the w3c validator said the page was in iso-8859-1 format and if uploaded it by opera 8.5 the validator said it was in utf-8 format (That was the first reason to do the copy&paste job)

First error: The w3c validator allowed me to open script in the head and neved needed to close it!
Second error: Firefox rendered that buggy code just right (I remember days that it was only IE’s job) – or was the source buggy?

One Response to “I found a bug in w3c validator service”

  1. wroxbox

    Of course the javascript was written to head with "<>", but this nucleus does not allow me to write it to the source – that it why the example is written between [] -tags.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>