W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: Bug when interpreting attribute values

From: Christian Smith <csmith@barebones.com>
Date: Wed, 13 Jun 2001 14:24:40 -0400
To: Gunnar Vestergaard <user1975@worldonline.dk>
cc: www-validator@w3.org
Message-ID: <20010613142441-b01010703-f0995688-0910-010c@204.107.232.107>
On Wednesday, June 13, 2001 at 8:12 PM, user1975@worldonline.dk (Gunnar Vestergaard) wrote:

> I have chosen not to subscribe to this list. I just want to convey to 
> you an issue regarding the W3C HTML Validator:
> 
> It may be called a bug, but I am not sure. When validating the fragment
> <img src=/grafik/layout/read_more.gif alt="Read more">
> 
> the Validator reports an error: "an attribute value must be quoted if 
> it contains any character other than letters (A-Za-z), digits, 
> hyphens, and periods; use quotes if in doubt"
> 
> The underscore is an issue here. But the HTML spec 
> http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.2 clearly 
> states that underscores are allowed without placing quotation marks. 
> Surely, I will place quotation marks around this URI, but I believe 
> there is a conflict here.

I don't think it is the _ causing the problem but rather the /. The
error being reported is correct but the text just doesn't include
underscore as one of the allowed non-quoted characters. The validator
does correctly pass

<img src=read_more.gif alt="Read more">

assuming a DOCTYPE that allows unquoted attribute values.

-- 
Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!
Received on Wednesday, 13 June 2001 14:24:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT