jquery/jquery-mobile — pull request #3916 by jokeyrhyme (2012-03-26 00:00:34+00:00)
Title: Issue 3885 nested checkbox/radio inputs within labels

Here's my very first pull request so go easy on me. :)

This should (fingers crossed) help jQuery Mobile to deal with checkbox and radio input elements that are nested within their corresponding label element WITHOUT the usual id/for attribute relationship.

I've added a new unit test and made sure that all existing unit tests run.

Note that this only addresses checkbox and radio. I noticed that there are also potentially too-strict label assumptions being made in:
* jquery.mobile.forms.select.js
* jquery.mobile.forms.slider.js
* jquery.mobile.forms.textinput.js

The original ticket I filed (https://github.com/jquery/jquery-mobile/issues/3885) should probably not be closed until the fate of these other input fields has been decided. I did not feel comfortable fixing them in this pull request (a good commit is a small commit) and understand that there are likely some problematic layout concerns.