douglascrockford/JSLint — Issue #90: jslint.com: selecting checkboxes
Author: adscriven
Created: 2011-12-09 11:34:49+00:00
State: open

Hi. I've encountered a minor problem with the web UI.

Because the boxes are padded with non-breaking spaces, if you
click a box twice, fast enough that the OS interprets it as
a double-click, then the browser (at least IE and FF) interprets
that as wanting to select a word, and then highlights the nbsps as
being selected.

Unfortunately this looks identical to a checked box. I know the
selection disappears if you click anywhere else on the page and
the checkbox's true state is revealed, but I did find the
behaviour confusing until I figured out what was going on.

A possible fix would be to remove the spaces, set the spans to
float: left and give them a width and height of, say, 1em. --Antony