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

Re: HTML and CSS validators don't like '<' within Javascript code?

From: David Dorward <david@dorward.me.uk>
Date: Tue, 23 Jan 2007 18:56:17 +0000
To: Jeffrey Friedl <jfriedl@regex.info>
Cc: www-validator@w3.org
Message-ID: <20070123185617.GC3148@us-lot.org>

On Tue, Jan 23, 2007 at 04:05:31AM -0800, Jeffrey Friedl wrote:
> The HTML and CSS validators don't seem to properly ignore <script>
>    http://regex.info/blog/photo-tech/focus-chart/

Welcome to the wonderful world of XHTML:

  http://www.w3.org/TR/xhtml1/#h-4.8

And the even more wonderful world of XHTML that masquerades as HTML
with extra /s:

  http://www.w3.org/TR/xhtml1/#C_4
  http://www.hixie.ch/advocacy/xhtml

(Short answer: The validator is right, it shouldn't ignore <
characters in script elements in your document).

-- 
David Dorward                                      http://dorward.me.uk
Received on Tuesday, 23 January 2007 18:56:27 GMT

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