W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Re: Is '=' valid in <a> href attributes?

From: Liam Quinn <liam@htmlhelp.com>
Date: Sun, 20 Oct 2002 21:48:01 -0400 (EDT)
To: <www-validator@w3.org>, <wildfire@progsoc.org>
Message-ID: <Pine.LNX.4.33L2.0210202146020.18172-100000@localhost.localdomain>

On Sun, 20 Oct 2002, Anand Kumria wrote:

> I happened to be reading an article in Wired and I thought I'd see how
> valid the page was. I was pleasantly surprised to find just one thing
> preventing validator.w3.org from pronoucing it good.
> <URL:
> http://validator.w3.org/check?uri=http%3A//www.wired.com/news/technology/0%2C1282%2C55687-2%2C00.html>
> As you can see, the validator complains about line 107 where you have:
> <a
> href="http://newsdev3.hotwired.com/news/photogallery.asp?section=PoliticsPhotos"
> target=_top>Politics</a>
> While the validator will probably complain about the target attribute
> being unquoted it is actually complaining about 'section=...". I
> couldn't find anything which indicates '=' is bad in an attribute.

When I visit the validation results URL you gave, the only error reported
is for the unquoted attribute value for target.  ("Error: attribute values
must be quoted in XML".)

There's no problem with using "=" unescaped in HTML attribute values.

Liam Quinn
Received on Sunday, 20 October 2002 21:48:04 UTC

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