Skip to content
This repository

label wrapping checkbox triggers DOM_HIERARCHY_ERR #3688

Closed
fcheslack opened this Issue February 29, 2012 · 1 comment

2 participants

Faolan C-P John Bender
Faolan C-P

A label tag wrapping a checkbox triggers a DOM_HIERARCHY_ERR in the checkboxradio _create.
see http://jsfiddle.net/fcheslack/JJmqu/1/

Edit: happens on all browsers I've tried. Desktop chrome and firefox on Kubuntu 11.10 and android browsers on ICS (android browser, chrome for android, and firefox)

Faolan C-P

http://www.w3.org/TR/html4/interact/forms.html#h-17.9

edit: this was in response to a since deleted comment that input tags are not valid inside labels. One of the examples in the linked rec uses that pattern and calls it implicit association of a label with a control element.

John Bender johnbender closed this in 77bfb5a March 01, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.