View Single Post
  #14 (permalink)  
Old Aug 13th, 2007, 01:09
MikeHopley MikeHopley is offline
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: why validate websites

Quote:
Originally Posted by VanessaJW View Post
I think like Pete says, if you're confident that you can write valid code anyway, then the actual act of validating MIGHT not be necessary for you.
Confidence may be misplaced.

I'm confident of writing valid code: I know the general rules. But sometimes I make errors. Constant background validation alerts me when I make a mistake.

I just discovered that my javascript, which was generating extra (presentational) markup, was making my HTML invalid. I did not detect this, because the W3C validator checks the page without javascript transformations (and so does my background validator).

My error was to put <div>s inside a <dl>. They are not allowed there.

I suspect this mistake was the cause of an irregularly occurring, unpredictable browser rendering bug. Validation greatly reduces the need for bug-hunting.
Reply With Quote