W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: Closing anchor tag problem

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 06 Apr 2005 16:00:56 +1000
Message-ID: <42537B18.5090706@lachy.id.au>
To: Scott McGhee <alf9005@u.washington.edu>
CC: www-validator@w3.org

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"
          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://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Wednesday, 6 April 2005 06:01:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:45 UTC