lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev ALT ignored on <input type=button>


From: Ismael Cordeiro
Subject: Re: lynx-dev ALT ignored on <input type=button>
Date: Wed, 20 Jan 1999 17:01:09 -0500 (EST)

On Wed, 20 Jan 1999, Greg Marr wrote:

> >> Although <INPUT TYPE=BUTTON... is only meaningful for script enabled 
> >> browsers, Lynx displays [BUTTON} even when there is an ALT parameter.
> >> 
> >> Lynx Version 2.8.1dev.16, Win32.
> >> 
> >> <input type=button value="Find/Next" alt=""
> >>     tabindex="33"
> >>     onClick="search_description ('p5a', this.form.p5s, true);">
> >
> >ALT is an attribute of the IMG element.
> 
> <!ATTLIST INPUT
>   %attrs;                              -- %coreattrs, %i18n, %events --
>   type        %InputType;    TEXT      -- what kind of widget is needed --
>   name        CDATA          #IMPLIED  -- submit as part of form --
>   value       CDATA          #IMPLIED  -- required for radio and checkboxes --
>   checked     (checked)      #IMPLIED  -- for radio buttons and check boxes --
>   disabled    (disabled)     #IMPLIED  -- unavailable in this context --
>   readonly    (readonly)     #IMPLIED  -- for text and passwd --
>   size        CDATA          #IMPLIED  -- specific to each type of field --
>   maxlength   NUMBER         #IMPLIED  -- max chars for text fields --
>   src         %URI;          #IMPLIED  -- for fields with images --
>   alt         CDATA          #IMPLIED  -- short description --
>   ^^^
> and of Input.

Although HTML 4.0 says that ALT is an attribute of IMG, APPLET, AREA and
INPUT, ALT is always associated with an image. Without an image, as in the
example given by David, there is no place for ALT. HTML 4.0 clearly says
that "the alt attribute specifies alternate text that is rendered when the
image cannot be displayed" and that "authors that create a BUTTON with an
IMG element should specify alternate text for the image".

Ismael
-- 

       +--------------------------------------------------------------+
       | ISMAEL CORDEIRO            | mailto:address@hidden      |
       | Production sound mixer     | http://www.ismael.cordeiro.com/ |
       | Montréal - Québec - Canada | ftp://ftp.cam.org/users/ismael/ |
       +--------------------------------------------------------------+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]