New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label wrapping checkbox triggers DOM_HIERARCHY_ERR #3688

Closed
fcheslack opened this Issue Mar 1, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@fcheslack
Contributor

fcheslack commented Mar 1, 2012

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)

@fcheslack

This comment has been minimized.

Show comment
Hide comment
@fcheslack

fcheslack Mar 1, 2012

Contributor

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.

Contributor

fcheslack commented Mar 1, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment