W3C home > Mailing lists > Public > www-html@w3.org > February 2004

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

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 19 Feb 2004 20:01:50 +0200 (EET)
To: www-html@w3.org
Message-ID: <Pine.GSO.4.58.0402191957060.20937@korppi.cs.tut.fi>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:07 UTC