W3C home > Mailing lists > Public > www-validator@w3.org > July 2007

Re: Validating one of my web pages

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 6 Jul 2007 23:07:33 +0300 (EEST)
To: Otto Wyss <otto.wyss@orpatec.ch>
cc: www-validator@w3.org
Message-ID: <Pine.SOC.4.64.0707062304430.21173@mustatilhi.cs.tut.fi>

On Fri, 6 Jul 2007, Otto Wyss wrote:

> True, but this backslash is a rather silly hack around a problem the
> validator should be able to handle correct.

No, _authors_ should handle the problem by putting JavaScript code in an 
external file or by using modern DOM techniques when creating HTML 
elements.

After an author has created the problem by putting, say, </div> inside a 
script element, the only correct handling in a validator is to report the 
markup error. The job of a validator is to report reportable markup errors 
- nothing more, nothing less.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 6 July 2007 20:07:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:25 GMT