Skip to main content

Search and Top Navigation

#7723 closed bug (duplicate)

Opened September 16, 2011 04:13PM UTC

Closed September 16, 2011 04:53PM UTC

Last modified September 16, 2011 04:53PM UTC

jquery ui button does not support implicit labels

Reported by: studgeek Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.button Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

The jquery ui button does not support implicit labels as described at http://www.w3.org/TR/html4/interact/forms.html#h-17.9.1 like the following.

<label>
<input type="checkbox" />
</label>

See a http://jsfiddle.net/studgeek/8xpYs/ for a live example.

I've looked at fixing it. Modifying it to check for a containing label when defining its buttonElement is straightforward, but there are other parts of the implementation that run into recursion problems. I've played with detaching the input element or moving it outside the label, but worry those approaches may confuse developers. Is there a standard pattern used elsewhere in jQuery UI that would apply here?

d

Attachments (0)
Change History (2)

Changed September 16, 2011 04:53PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Changed September 16, 2011 04:53PM UTC by scottgonzalez comment:2

Duplicate of #6063.