[Bug 27292] <label> element content model

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

Marat Tanalin | tanalin.com <mtanalin@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtanalin@yandex.ru

--- Comment #1 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> ---
That would be a harmful limitation.

Checkbox itself as a form control is clickable anyway while _text_ inside link
inside the form-control's label may make sense in terms of _accessibility_. For
example:

    <ul>
        <li><label>
            <input type="checkbox" name="music" /> 
            <a href="/music/">Music</a>
        </label></li>

        <li><label>
            <input type="checkbox" name="photo" /> 
            <a href="/photo/">Photo</a>
        </label></li>

        <li><label>
            <input type="checkbox" name="sport" /> 
            <a href="/sport/">Sport</a>
        </label></li>
    </ul>
    <input type="submit" value="Apply filters" />

In the example, each link points directly to its corresponding category page in
just one click (without need for two redundant clicks: 1. single checkbox; 2.
submit button) while it's still possible to select multiple categories using
corresponding checkboxes _when needed_ while text of each link is useful as an
accessible label text regardless of whether the link itself is clickable.

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

Received on Monday, 10 November 2014 16:03:26 UTC