anthonynosek / sprint-reader-chrome

A speed reading Google Chrome extension (via Rapid Serial Visual Presentation).
Other
219 stars 54 forks source link

Fix <label for="checkbox"> #2

Closed denilsonsa closed 10 years ago

denilsonsa commented 10 years ago

The HTML <label> element can have an optional attribute for, which should be set to the id of the respective input element.

<input type="checkbox" id="foobar">
<label for="foobar">Foo bar</label>
<!-- Note: the type here does not matter, it works for all types. -->

Alternatively, the <input> element can be put inside the <label> element.

<label for="foobar"><input type="checkbox" id="foobar"> Foo bar</label>

I've noticed this issue in:

anthonynosek commented 10 years ago

Thanks Denilson. I have tidied up ALL the