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.  
<http://www.w3.org/TR/2002/NOTE-xhtml-media-types-20020801/#media- 
types>

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

--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
Received on Thursday, 15 July 2004 09:28:47 GMT

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