- From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
- Date: Sun, 26 Feb 2012 21:31:36 +0100
- To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Cc: Steve Faulkner <faulkner.steve@gmail.com>, HTML Accessibility Task Force <public-html-a11y@w3.org>, public-html@w3.org, Judy Brewer <jbrewer@w3.org>, Janina Sajka <janina@rednote.net>
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