W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] Definition of alt= attribute

From: James Graham <jg307@cam.ac.uk>
Date: Sat, 21 Jan 2006 12:54:34 +0000
Message-ID: <43D22F0A.4040108@cam.ac.uk>
Henri Sivonen wrote:
> On Jan 19, 2006, at 14:05, Anne van Kesteren wrote:
> 
>> Without the "alt" attribute <img> becomes meaningless for devices
>> (and people) who can not interpreted images.
> 
> Good intention, yes, but let's consider the practice:
> 
> Suppose there is an authoring tool that has a design goal of always 
> outputting conforming (to the extent conformance is machine-assessable) 
> documents. This tool allows the user to insert images.
> 
> Allowing images to be inserted without prompting for more information 
> and also enforcing the presence of a human-supplied alt attribute would 
> mean that the tool would have to refuse to save the document until the 
> alt texts have been supplied. Refusing to save is not good. Therefore, 
> the tool would have to present a document-modal dialog prompting for the 
> alt text upon inserting the image.
> 
> Sure, some people might even enter some text, but people who just want 
> to get on with it would hit return with an empty text box. 
> Alternatively, the tool makers could give up the requirement of 
> human-supplied alt text and just generate an empty alt text by default 
> without asking. (Considering that the tool itself--not just the author 
> using it--will be judged by seeing if the output passes an automated 
> conformance check, it is likely that the requirement of correct output 
> will not be dropped because of the alt issue.)

People seem to have passed this point by. the current specification of 
alt as required makes it almost impossible to design a conforming HTML 
editor that doesn't mess up the semantics of the attribute. Since many 
(the majority?) of HTML pages are produced using some form of graphical 
editor (often implemented using contentEditable or some other HTML+js 
solution as part of a CMS), the spec should at least consider the needs 
of editors as well as UAs.
Received on Saturday, 21 January 2006 04:54:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC