Re: Request clarification: Does readonly apply to checkboxes and radio buttons?

On Thu, 19 Feb 2004, Robin Lionheart wrote:

> Although "readonly" could be useful for checkboxes and radio buttons,
> the HTML 4.0 DTD has the comment:
>
>  readonly    (readonly)     #IMPLIED  -- for text and passwd --

Although the restriction is, somewhat oddly, stated in a DTD comment only,
it seems to me that it is intentional. Notice that the "disabled"
attribute is defined for BUTTON, INPUT, OPTGROUP, OPTION, SELECT, and
TEXTAREA but "readonly" for INPUT and TEXTAREA only. If the intent was to
allow making checkboxes and radio buttons readonly, it would have not been
logical not to allow that for SELECT and BUTTON too.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Thursday, 19 February 2004 13:01:53 UTC