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

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="">
</map>

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."
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-map-element.html#the-area-element

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
http://bugzilla.validator.nu/show_bug.cgi?id=870
(which also addresses some other <area> issues).

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Received on Thursday, 27 October 2011 09:24:48 UTC