W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

Why is readOnly invalid for checkboxes and radio buttons?

From: Robin Lionheart <w3c-ml@robinlionheart.com>
Date: Thu, 19 Feb 2004 10:18:02 -0500
Message-ID: <4034D3AA.8060704@robinlionheart.com>
To: www-dom@w3c.org

DOM2 states that readOnly is only relevant for "text" and "password" 
input fields
(http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-884615
92):

    readOnly of type boolean
    This control is read-only. Relevant only when type has the value "text"
    or "password". See the readonly attribute definition in HTML 4.01.

Why is it irrelevant to "checkbox" and "radio" controls, where it is 
also useful? (Not to mention "file".)

The readonly attribute definition in HTML 4.01 says only, "The following 
elements support the readonly attribute: INPUT and TEXTAREA." No 
qualifications about control types.

Was this an oversight? Is it intended that user agents ignore readonly 
for checkboxes and radio buttons?

(I'm asking again since no one responded when I asked eight months ago.)
Received on Thursday, 19 February 2004 10:21:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT