W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2013

[Bug 23561] New: more tags should be allowed inside <label>

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Oct 2013 08:41:42 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-23561-2486@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23561

            Bug ID: 23561
           Summary: more tags should be allowed inside <label>
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: giorgio.liscio@email.it
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

hello,

i think tags such as <div> or <p> should be allowed inside <label>

i would consider it like <a>, a focusable area that is not necessarily just a
span of text

note: browsers didn't modify the parser yet to follow the spec so the following
syntax is in fact still allowed and functioning

<label>
     <div>test</div>
     <input type="text">
</label>

(tested all msies 6+, firefox, webkit based browsers)

so, spec could be changed to follow the implementations. what do you think?

I don't have an use case, but i think it's very common the usage of <div>, for
example, inside <label>, especially for form styling

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 18 October 2013 08:41:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:45 UTC