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

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

            Bug ID: 24278
           Summary: should links be allowed inside labels?
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: faulkner.steve@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

"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:29:47 UTC