Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
label conflict issue #3879
What do you mean by "won't be supported" -- just that jQM won't do anything special with a second label, or that a second label might actually cause problems?
As for semantic validity, multiple labels for a single form element is valid in both HTML4 and HTML5. HTML4 is more explicit about it:
The HTML5 spec doesn't spell things out so clearly, but implicitly permits multiple labels with the following bit about
On a more pragmatic level, the popular jQuery validation plugin (which all of my current jQM app's client-side validation is built on) uses a second form label for its error messages.
That is very interesting. Our issue is that we need to style the label of the form element as the clickable "button" so how do we decide which label to enhance into the control? I think we could add in some logic to simply ignore all but the first label associated with an element or some convention like that. At the very least, it shouldn't error out.