W3C home > Mailing lists > Public > www-validator@w3.org > April 2006

Re: Error Message Feedback - Reading JavaScripts

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Apr 2006 13:49:28 +0100
To: Zoberan <bret@zoberan.com>
Cc: www-validator@w3.org
Message-ID: <20060411124928.GE21817@us-lot.org>

On Sat, Apr 08, 2006 at 12:41:49AM -0700, Zoberan wrote:
>    Error Line 95 column 28: end tag for element "A" which is not open.
>          document.write('Email Us</a>');
>    If this error occured in a script section of your document, you should
>    probably read this FAQ entry.

>       If  the validator misses the opening <a> why does it see the closing
>    </a>? 

For the reasons described at the aforementioned "this FAQ
entry". <script> contains CDATA in HTML 4 where (due to a quirk of
SGML) end tags are recognised but start tags are not.

The FAQ entry also tells you how to fix it. (<\/a>).

(I read the mailing list, please address responses there and do not CC
me. Thanks).

David Dorward                                      http://dorward.me.uk
Received on Tuesday, 11 April 2006 12:49:48 UTC

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