Re: Request to Reconsider Alt Guidance Location

Benjamin Hawkes-Lewis, Sun, 26 Feb 2012 19:45:45 +0000:
>> So, while an HTML5 validator will display an
>> error for
>>         <a href=foo ><img src=bar ></a>
>>   it will not display an error for
>>         <a href=foo ><img src=bar alt='' ></a>
>> 
>> Thus, the simple route to validity, for lazy authors and authoring
>> tools, remains to include an empty alt=''.

>> But then
>> again, it could perhaps also be possible to plug this hole in the HTML5
>> validation - e.g. by making the latter example an error.
> 
> It already is.

> 
http://dev.w3.org/html5/spec/the-img-element.html#a-link-or-button-containing-nothing-but-the-image


Right. I filed a validator bug:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16125

-- 
Leif Halvard Silli

Received on Sunday, 26 February 2012 20:32:15 UTC