This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6145 - Label content model should allow <label for=a><input id=a>
Summary: Label content model should allow <label for=a><input id=a>
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 20:23 UTC by Simon Pieters
Modified: 2010-10-04 14:48 UTC (History)
5 users (show)

See Also:


Attachments

Description Simon Pieters 2008-10-08 20:23:46 UTC
The content model for label says

"If the element has a for attribute: Phrasing content, but with no descendant labelable form-associated elements or label elements."

This disallows the reasonable common markup:

<label for=a><input id=a type=checkbox> Foo</label>

(Using for for compat with IE6 or some AT and nesting for increased clickability area or for styling reasons.)