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

Re: Possible validator bug with JavaScript

From: <shen@cse.ust.hk>
Date: Wed, 9 May 2007 06:58:59 +0800 (HKT)
Message-ID: <1674.72.29.239.177.1178665139.squirrel@imail.cse.ust.hk>
To: "olivier Thereaux" <ot@w3.org>
Cc: shen@cse.ust.hk, www-validator@w3.org

Thanks. I was not aware of the notes in the appendix.

I agree that it is not the validator problem, but could be
the result of the specifications. Thanks for the pointers.

-Vincent

> Hi Vincent,
>
> On May 8, 2007, at 13:54 , shen@cse.ust.hk wrote:
>> The attached HTML file should be valid, but the validator
>> reached into the JavaScript literal and found a problem,
>> when there is none. Sample code is attached for your testing.
>
> The problem which the validator spotted is a common issue with
> creating valid markup when using javascript in a certain way,
> especially with document.write(). The error message given by the
> validator points to the following FAQ:
> http://www.htmlhelp.com/tools/validator/problems.html
> which itself mentions the HTML specification:
> http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2.1
>
>> I think the validator should skip JavaScript code completely,
>> unless it has a built-in JavaScript interpretor.
>
> This is not for us to decide, the validator is merely following the
> specifications, here.
>
> Regards,
> --
> olivier
>
>
>
Received on Tuesday, 8 May 2007 22:59:09 GMT

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