Re: Wrong error: html code within javascript's write method

> Arnost Lobel wrote:
> 
> Hi,
> 
> when I let to validate my html file I got some errors which are
> probably wrong.
> 
> Example:
> 
>         I have a javasript in the header of my html file
>         and there is this code:
> 
>         layer.write( '<SPAN CLASS="CvPageNr">' + iCurrPage.toString()
> + '</SPAN>' );
> 
>         (where iCurrPage is an integer variable)
> 
>         I got this error:
> 
>         "...end tag for element "SPAN" which is not open..."
> 
> I do not think the validator is right.

The validator is right.  See
<http://www.htmlhelp.com/tools/validator/problems.html#script>.

-- 
Liam Quinn
A Real Validator for Windows, http://arealvalidator.com
Web Design Group, http://www.htmlhelp.com

Received on Friday, 1 October 1999 17:55:55 UTC