Re: Error Message Feedback - Reading JavaScripts

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