Bug Tracker

Modify

Ticket #10974 (closed bug: invalid)

Opened 18 months ago

Last modified 18 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 18 months ago by anonymous

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

comment:2 Changed 18 months ago by ajpiano

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.