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 1199 - two inputs in a label is marked as valid
Summary: two inputs in a label is marked as valid
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.7
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
Depends on:
Reported: 2005-04-03 20:31 UTC by Brad Fults
Modified: 2005-04-04 06:19 UTC (History)
0 users

See Also:


Description Brad Fults 2005-04-03 20:31:50 UTC
Although it is explicitly disallowed by the spec [1], the validator validates a
page [2] that has two INPUT elements inside of a LABEL.

[1] -
[2] -
Comment 1 Bj 2005-04-04 04:47:40 UTC
You mean "each LABEL element is associated with exactly one form control"? 
Well, this requirement is not spelled out in the DTD then, and since the 
Validator only checks against the DTD at the moment, it does indeed not find 
such errors. There are many more such shortcomings (all of which are known 
Comment 2 Terje Bless 2005-04-04 06:19:15 UTC
This is a specification bug; the REC says: [[[
  To associate a label with another control implicitly, the control element must be within the
  contents of the LABEL element. In this case, the LABEL may only contain one control element.
]]] but this is not reflected in the content model for the "label" element in the DTD.

  <!-- Each label must not contain more than ONE field -->
  <!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->

I'd suggest you report this discrepancy to the HTML Editor <>.