W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] Can we make checkboxes readonly?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 6 Apr 2011 13:45:36 -0700
Message-ID: <BANLkTin_DW=RhYbVMgBtKy26uXSBXSvm1A@mail.gmail.com>
Currently, the spec disallows checkboxes from being made readonly.  Is
there some good reason for this?  If not, can we change it?
Checkboxes being readonly would be useful for the same reasons that
text inputs being readonly is.

Radio buttons can't be readonly either, but they have the obvious
complication of being multiple elements.  We could define behavior for
them, of course.  One option is to take the @required route, and say
that if one radio button in a group is readonly, they all are.  We
could alternately say that a radio button being readonly means that
that specific input can't have its checkedness changed - if it's
currently unchecked, clicking on it won't check it; if it's currently
checked, clicking on a mutable radio button from the same group
wouldn't change the checkedness of either input.

Received on Wednesday, 6 April 2011 13:45:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:05 UTC