- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Fri, 08 Jul 2005 19:21:32 +1000
- To: "Sorocaba On-Line S/C Ltda." <sorocaba@hotmail.com>
- CC: www-validator@w3.org
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