[Bug 24279] New: should links be allowed inside labels?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24279

            Bug ID: 24279
           Summary: should links be allowed inside labels?
           Product: WHATWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML
          Assignee: ian@hixie.ch
          Reporter: faulkner.steve@gmail.com
        QA Contact: contributor@whatwg.org
                CC: faulkner.steve@gmail.com, mike@w3.org,
                    public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org
        Depends on: 24278

+++ This bug was initially created as a clone of Bug #24278 +++

"Phrasing content, but with no descendant labelable elements unless it is the
element's labeled control, and no descendant label elements."
http://www.w3.org/html/wg/drafts/html/master/forms.html#the-label-element
example:
<label for="test"><a href="http://google.com">google</a></label><input
id="test" type="checkbox">  

or if you prefer a real world example:

<input id="boston_region" type="checkbox" name="locations"
value="boston_region">

<label for="boston_region">
    <a id="x:219752177.6:mkr:dtnContent" 
    class="igdt_Node igdt_NodeParent"  href="#" 
    title="BOR - Boston Region" 
    mkr="dtnContent">BOR - Boston Region</a>
</label>


this breaks the expected behaviour of a label activating the control in
IE/chrome/firefox. 

suggest changing to "no descendant interactive elements"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 13 January 2014 10:32:52 UTC