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

Re: [VE][79] New Error Message Suggestion

From: David Håsäther <hasather@msn.com>
Date: Sun, 30 May 2004 22:02:48 +0200
To: <www-validator@w3.org>
Message-ID: <BAY5-DAV24RBaYFkuut00012b5b@hotmail.com>

John Blackbourn <john@wormfeeder.com> wrote:

> When validating my web page, which contains some JavaScript,
> the following error is generated:
>
> end tag for element "A" which is not open
> ...r((fs),((di.length)-6-fs)) + '</a></td></tr>');

The content model for the SCRIPT element type is CDATA. Inside it,
everything starting with "</" (ETAGO) and immediately followed by a
namestart character (a letter) will be recognized as the beginning of an
end tag. Since the element was never opened, this will be reported as an
error.
One workaround is to escape "/" like so "...'<\/a><\/td><\/tr>'...".

-- 
David Håsäther
Received on Sunday, 30 May 2004 16:27:50 GMT

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