W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

[whatwg] Can we make checkboxes readonly?

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 2 May 2012 18:17:05 -0500
Message-ID: <CABirCh9J1Kh=q=up-1A2q0hb8123c4xgqTHfkrHSynyHfxF4tw@mail.gmail.com>
On Wed, May 2, 2012 at 5:57 PM, Ian Hickson <ian at hixie.ch> wrote:

> On Wed, 6 Apr 2011, Jonas Sicking wrote:
> > What are the use cases for readonly on <input type=text>? I would
> > imagine the use cases for checkbox isn't very different.


It's useful if you want to have an isolated block of text that's easy to
copy-and-paste, without the selection spilling into adjacent text; you just
double-click the input, or focus it and hit ^A.  That isn't relevant for
checkboxes and radio buttons, of course.

Glenn Maynard
Received on Wednesday, 2 May 2012 16:17:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:41 UTC