Skip to main content

Bug Tracker

Side navigation

#10974 closed bug (invalid)

Opened December 07, 2011 04:16PM UTC

Closed December 07, 2011 04:22PM UTC

Input buttons inside labels - Only first 'click' bind works

Reported by: thezoggy@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

Here is an example, click on 1111 it works fine. click on 2222 notice it fires off 2222 then 1111. If you delete the label it's in then everything works fine.

http://jsfiddle.net/dDJCS/

I can't find anything that says this is invalid html..

Attachments (0)
Change History (2)

Changed December 07, 2011 04:18PM UTC by anonymous comment:1

per w3c, 'This document was successfully checked as XHTML 1.0 Transitional!'

Changed December 07, 2011 04:22PM UTC by ajpiano comment:2

resolution: → invalid
status: newclosed

http://www.w3.org/TR/html/dtds.html

<!--

Each label must not contain more than ONE field

Label elements shouldn't be nested.

-->

http://dev.w3.org/html5/markup/label.html

The label element may contain at most one descendant input element, button element, select element, or textarea element.

Sounds like you have a bug to report to the w3c validator :)