DOM1 Error in HTMLInputElement::value

The value attribute of Interface HTMLInputElement's description [1]
says:

  The current form control value. Used for radio buttons and check
  boxes. See the value attribute definition in HTML 4.0.

It is not used only for radio buttons and check boxes.  It is used for
most types of input elements, but it is mandatory only for radio
buttons and check boxes.  It is also used, for example, to specify the
initial text in text input boxes or file uploads or the text on
buttons. [2]

David

[1] http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html#ID-6043025
[2] http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4

L. David Baron      Freshman, Harvard      dbaron@fas.harvard.edu
Links, SatPix, CSS, etc.  < http://www.fas.harvard.edu/~dbaron/ >
WSP CSS AC                   < http://www.webstandards.org/css/ >

Received on Friday, 30 April 1999 22:36:44 UTC