[Bug 22586] label element that does not label a control is currently conforming

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

--- Comment #14 from Michael[tm] Smith <mike@w3.org> ---
(In reply to comment #12)
> <label id="label1" for="f3">label text </label> 
> <input type="text" id="f3" aria-labelledby="label1 label2 label3"> 
> <p>other content</p> 
> <label id="label2">more label text</label>
> <p>other content</p> 
> <label id="label3">even more label text</label>

So that example would not be valid if we were to change the spec to say a
<label> element must have either a "for" attribute or a "labelable elementa" as
a descendant.

I recognize that the "aria-labelledby" attribute on the <input> element in the
example achieves a similar purpose, but I'm personally reluctant to start
making any core document-conformance rules change depending on particular ARIA
attributes, and I think it'd not unreasonable to consider it a layering
violation.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 7 July 2013 03:07:27 UTC