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

Re: [VE][html5] conflicting errors for <area> without a href

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 27 Oct 2011 12:24:16 +0300
Message-ID: <4EA92340.4060601@cs.tut.fi>
To: kunda <kunda@internode.on.net>
CC: www-validator@w3.org
27.10.2011 3:29, kunda wrote:

> Here's the validation link:
> http://validator.w3.org/check?uri=http%3A%2F%2Ftinyurl.com%2F6yrcw5c&charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1&verbose=1

Thank you - it was a somewhat surprising way of showing the source but 
quite sufficient for identifying the issue.

The issue is reproducible using the minimal document

<!doctype html><title></title>
<map name=m>
<area alt="">

It's the alt attribute that causes the error message about missing href. 
It is adequate to issue an error message on the basis of this:
"If the area element has no href attribute, then the area represented by 
the element cannot be selected, and the alt attribute must be omitted."

That's a way of saying that if the alt attribute is present, the href 
attribute must be present.

The error message could be clearer, though. I've created the bug report
(which also addresses some other <area> issues).

Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 27 October 2011 09:24:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:31:07 UTC