Bug Tracker

Opened 7 years ago

Closed 7 years ago

#10974 closed bug (invalid)

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

Reported by: thezoggy@… 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..

Change History (2)

comment:1 Changed 7 years ago by anonymous

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

comment:2 Changed 7 years ago by ajpiano

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 :)

Note: See TracTickets for help on using tickets.