W3C home > Mailing lists > Public > public-html@w3.org > August 2008

Re: alt attribute - a very simple proposal

From: Karl Dubost <karl@w3.org>
Date: Wed, 20 Aug 2008 11:13:19 +0900
Cc: Ian Hickson <ian@hixie.ch>, HTML WG <public-html@w3.org>
Message-Id: <240CFBEA-C047-4125-B567-0B35A2CFF24D@w3.org>
To: Henri Sivonen <hsivonen@iki.fi>

Le 19 août 2008 à 22:03, Henri Sivonen a écrit :
> On Aug 19, 2008, at 15:24, Karl Dubost wrote:
>> My proposal is something along:
>> 	All img elements must have the alt content attribute set.
>> 	The accessibility requirements on the possible values of
>> 	the alt attributes are defined by WCAG 2.0 and not HTML 5.
> When the markup generator has an image of unknown (to the generator)  
> content for which the generator does not have user-entered textual  
> alternative, what should the markup generator emit as the value of  
> the alt attribute according to your reading of WCAG 2.0?

Maybe two possible scenarios:

1. The generator creates the markup with an empty alt attribute.
    Rationale: any kind of automatic machine value attribution will be  
    1.a (Optional) the markup generator generates a report about  
possible image issues.

2. The generator creates no markup for alt attribute and leave it to  
the user to fix it later on.

note 1: case 2 will be an issue with already deployed softwares. Some  
software are creating already automatic values, for example, textmate  
creates something from the filename. "2059-beach-hotel.jpg" becomes  
alt="2059 beach hotel".

note 2: As a functional requirement for authoring tools, web services  
with editing capabilities, giving the possibility to edit the  
alt="attribute". Flickr do editing with Ajax, one field could be  
perfectly proposed for alt or less confusing. A generic part of the  
description text, more an implementation strategy. Note also that  
Flickr for example imports automatically XMP RDF for images (including  
the description, the keywords, etc.).

Karl Dubost - W3C
Be Strict To Be Cool
Received on Wednesday, 20 August 2008 02:13:56 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:37 UTC