Re: w3 have a bug

Sorocaba On-Line S/C Ltda. wrote:
> 
> look this code
> the w3.org write, but this tag is open YESSSSSSS.. YES.

No it's not.  The validator does not have a bug, you mis understand the 
error.

> ---
> Line 29, column 171: end tag for element "A" which is not open
> ....Hit Counter & Website Statistics'></a>");
> ---
> ...
> document.write("<a href='http://www.tdstats.com/c/?cid=377'><img 
> src='http://www.tdstats.com/in/"+args+"' border=0 alt='TDStats.com - Hit 
> Counter & Website Statistics'></a>");
> ...

This is a very common validation problem.
http://www.htmlhelp.com/tools/validator/problems.html#script

Although, I think you also need to learn a lot more about scripting. 
There is really no point in trying to use the language attribute in 
order to determine which version is supported and you should really try 
to avoid using document.write().  You should use standard ECMAScript 
(aka JavaScript) and the standard Document Object Model (DOM) to work 
with your document.

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Friday, 8 July 2005 09:21:45 UTC