Re: Closing anchor tag problem

Scott McGhee wrote:
> It's only one error, and it states that I have a "end tag for element "A"
> which is not open".  Yet, looking at the source, it indeed is...
> http://www.itistime.us/index.php.

The problem is that you have some very strange browser sniffing going on 
that shouldn't be.  If you change your browser's User-Agent string to 
match the validators, the page recieved is completely different.

As the show source code option in the validator shows, there is indeed 
an extraneous </a> end-tag on line 71, which does not occur in the 
version recieved by other browsers.


71: <img class="w3c" border="0"
          src="http://jigsaw.w3.org/css-validator/images/vcss"
          alt="Valid CSS!" height="31" width="88"></a>
                                    Error is Here ^^^^

If you would like to confirm this for yourself, the validator's user 
agent string is: W3C_Validator/1.305.2.148 libwww-perl/5.803

You can use an extension like the User Agent switcher [1] for Firefox or 
Mozilla, or just add the general.useragent.override pref in about:config 
(mozilla based browsers only) with that value (note: you'll have to add 
it, it's not listed by default).  I'm not sure how it can be done with 
other browsers though.

[1] http://www.chrispederick.com/work/firefox/useragentswitcher/

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox

Received on Wednesday, 6 April 2005 06:01:05 UTC