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

Re: JavaScript validation bug

From: David Dorward <david@dorward.me.uk>
Date: Thu, 15 Jul 2004 14:27:52 +0100
Message-Id: <C62AE777-D662-11D8-9B5B-000A957E4F00@dorward.me.uk>
Cc: <www-validator@w3.org>
To: "James Crompton" <jc@jcrompton.de>

On 15 Jul 2004, at 13:19, James Crompton wrote:
> The validator objects to:
> <script type="text/JavaScript">
>     document.write('<ul><li><a

Yes, this is not a validator bug, this is a bug in your code. The  
validator is (as usual) quite correct.

You are using XHTML. XHTML is hard (or at least harder the HTML).

Why it is throwing an error: <http://www.w3.org/TR/xhtml1/#h-4.8>

For some reason you are using XHTML 1.1 and serving it as text/html.  
You (quote) 'SHOULD NOT' do this.  

See also: <http://www.hixie.ch/advocacy/xhtml>

David Dorward
Received on Thursday, 15 July 2004 09:28:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:43 UTC