Re: proposed change: links inside label elements

Hi Steve,

Yes as long as not the whole label becomes an anchor, it's still fully
functional.

Maybe disallowing that case is a good idea, but I don't really see the
advantage of doing that, unless there's solid data that suggests that this
happens a lot and interferes with (for example) AT and screen-readers.

Kind regards,
Reinier Kaper


On 13 January 2014 11:42, Steve Faulkner <faulkner.steve@gmail.com> wrote:

> checked the code you provided:
>
>
> <label>
>   <input type="checkbox" />
>   I agree to the <a href="tos.html">terms of service</a> for using this
> product.
> </label>
>
> for the non link text the control can still be activated, so maybe only
> needs to restrict case where label text is wholly contained with a link:
>
>
> <label>
>   <input type="checkbox" />
> <a href="tos.html">I agree to the terms of service for using this product.
> </label></a>
>
>
> --
>
> Regards
>
> SteveF
> HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
>
>
> On 13 January 2014 14:43, Steve Faulkner <faulkner.steve@gmail.com> wrote:
>
>>
>>
>> --
>>
>> Regards
>>
>> SteveF
>> HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
>>
>>
>> On 13 January 2014 14:34, Domenic Denicola <domenic@domenicdenicola.com>wrote:
>>
>>> > do you know of any use cases for including links in label elements?
>>>
>>> Although it's certainly not the best user experience, I've seen many
>>> terms-of-service checkboxes with links to the terms of service. E.g.
>>>
>>> <label>
>>>   <input type="checkbox" />
>>>   I agree to the <a href="tos.html">terms of service</a> for using this
>>> product.
>>> </label>
>>>
>>
>> is this a use case that we want to continue to encourage/allow?
>>
>>>
>>> I imagine if I poked around the sites I used I'd be able to turn up
>>> quite a few URLs illustrating this.
>>>
>>
>> would be useful to have some data, will dig.
>>
>>
>

Received on Monday, 13 January 2014 16:49:44 UTC