Re: HTML 4 Validator Problem?

Rob Habberfield wrote:
> 
> My web page includes the following piece of code:
> 
> document.write("<u><span style='color:black;cursor:hand'
> onclick='window.external.AddFavorite(location.href,document.title)'>Add this
> page to your Favorites</span></u>");
> 
> That code is located in a browser detection script for IE4+ users. The
> problem is that the validator sees the closing tags (</span></u>) at the end
> of the code and says:
> "end tag for element "SPAN" which is not open" and "end tag for element "U"
> which is not open"

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 Monday, 13 September 1999 19:46:33 UTC