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

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 UTC