[whatwg] Definition of alt= attribute

On 19 Jan, 2006, at 1:53 AM, Lachlan Hunt wrote:
>
> Matthew Paul Thomas wrote:
>>
>> I can think of no reason for <input alt= to exist
>
> <input type="image" alt="Go" src="go.png"/>

Ah, of course, I had forgotten about <input type="image">. It would 
have been more obvious to make alt= compulsory where type="image", and 
prohibited otherwise.

>> (<form alt= would make slightly more sense, for non-interactive UAs),
>
> Why would a form element need alternate content?
> ...

For non-interactive UAs, rather than non-graphical ones.
*   <form id="register" alt="To register by post, write to ...">
*   <form id="search" alt="">
I'm not saying it's a *good* idea, just that it would have made more 
sense than allowing alt= for non-image <input>s. :-)

-- 
Matthew Paul Thomas
http://mpt.net.nz/

Received on Friday, 20 January 2006 03:49:49 UTC