[whatwg] ALT and equivalent representation

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Sun Apr 20 23:16:06 PDT 2008


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



More information about the whatwg mailing list