Re: A presentational img?

On May 10, 2011, at 1:56 PM, Steve Faulkner wrote:

> hi james,
> 
>> what about an explicit alt="" inside a link?
>> <a href="/path/about_us.html"><img src="contact.png" alt=""></a>
> 
> not sure in what sense you mean 'what about'
> 
> its certainly an author error, in this case, since the accessible name for the link is derived from its content and its content is absent, then a heusristic is to announce the href 
> NVDA goes one better and just announces the linked file name "about_us"


As does VoiceOver: "about us". I'm just curious if it'd be worthwhile to have the HTML spec standardize the fallback heuristics there. Something like use "last filename component minus extension" on unlinked images, or use "last link path component minus extension" on linked images. It could also spec which special chars to replace with spaces, like underscore, hyphen, etc.

Received on Tuesday, 10 May 2011 21:08:32 UTC