W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] ALT and equivalent representation

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Mon, 21 Apr 2008 07:16:06 +0100
Message-ID: <480C3126.9020905@googlemail.com>
Shannon wrote:
> Smylers wrote:
>> What advantage does it have over Simon's proposal?
>> Simon's suggestion has the obvious advantage that it already works with
>> current browsers.
>> Smylers
> Simon's suggestion is no different from the original proposal, the idea 
> that alt can be optional on some images. 

I think you've misunderstand Simon's suggestion, which was:

<p>Rating: <img src=1 alt=3/5><img src=1 alt><img src=1 alt><img
    src=0 alt><img src=0 alt></p>

Note /all/ the img elements have alt attributes, the point is the 
alternative text for the group is expressed by the first alt attribute. 
It's thus actually the same as the fallback you propose:

 > Fallback for current browsers is something I overlooked but it is easy
 > to do:
 > <altgroup id="hippo" value="Hippopotamus">
 > <img src="hippo_head.png" altgroup="hippo" alt="Hippopotamus"><img
 > src="hippo_tail.png" altgroup="hippo">
 > With the alt simply being overridden by altgroup in a HTML5 browser.

Benjamin Hawkes-Lewis
Received on Sunday, 20 April 2008 23:16:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC