[Bug 27292] <label> element content model

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

--- Comment #4 from Andrea Rendine <master.skywalker.88@gmail.com> ---
(In reply to Marat Tanalin | tanalin.com from comment #3)
I understand that duplicating things can be quite useless (not "evil", just
what damages the user experience is evil actually). Anyway, you will have to
notify the users of your website that clicking on the names with the purpose of
checking the checkboxes (which is something users do sometimes) has not that
effect (unless links are graphically evident.
A sidenote: were the <label><a href="url">label text</a></label> not allowed,
this is how I would solve that markup issue (which is not an issue in your
opinion):
<dl>
 <dt>
  <label><input type="checkbox" name="music" /> Music</label>
 </dt>
 <dd><a href="/music/">Check the page</a></dd>
 <dt>
  <label><input type="checkbox" name="photo" /> Photo</label>
 </dt>
 <dd><a href="/photo/">Check the page</a>
 <dt>
  <label><input type="checkbox" name="sport" /> Sport</label>
 </dt>
 <dd><a href="/sport/">Check the page</a></dd>
</dl>
<input type="submit" value="Apply filters" />
Which is of course my personal interpretation and I don't want by any mean
suggest that it's better or worse than anybody else's.
Just notice that label, besides being an accessibility feature, is also an
interactive control and people tend to use it, especially on mobile devices
where touching a whole word is more comfortable than touching the single
control.
Anyway, I also expect what will be said from authors.

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

Received on Monday, 10 November 2014 19:41:19 UTC