Re: Support Existing Content

Maciej Stachowiak wrote:

> <http://www.whatwg.org/specs/web-apps/current-work/#the-img>
> 
> "The img element represents a piece of text with an alternate graphical 
> representation. The text is given by the alt attribute, which must be 
> present, and the URI to the graphical representation of that text is 
> given in the src attribute, which must also be present.

A more contorted definition would be hard to conceive.  The graphical
representation is referred to in the prose as "alternate", yet
the ALT attribute specifies the text.  If the semantics of IMG
were really to be as proposed, a more natural representation
would be :

	<IMG alt="http://www.whatwg.org/logo.png">
		The WHATWG logo
	</IMG>

Philip Taylor

Received on Tuesday, 1 May 2007 22:46:39 UTC