E-mail List Archives
Re: Anchor inside label?
From: glen walker
Date: Apr 13, 2018 9:54AM
- Next message: Jonathan Avila: "Re: Forcing screen reader pronunciation ofabbreviationimportant to a brand"
- Previous message: JP Jamous: "Re: Forcing screen reader pronunciation of abbreviationimportant to a brand"
- Next message in Thread: None
- Previous message in Thread: Isabel Holdsworth: "Re: Anchor inside label?"
- View all messages in this Thread
When I put my developer hat on, I can understand your uncomfortableness.
From an object oriented programming perspective, a link in a label is
essentially multiple inheritance. While it's natural for people to inherit
from two parents, in object oriented programming, you typically only
inherit from one parent. If you inherit from two, and both parents have
the same named method, which superclass method gets called when the method
goes up the chain? With a link in a label, the link essentially has two
parents - the <a> and the <label>. Both the <a> and the <label>
essentially have the same named method to handle a selection. So when you
select the link, which parent should be called? Is it a link or is it a
label (and subsequently checks the checkbox)?
So you're not alone with this uncomfortable construct.
On Fri, Apr 13, 2018 at 2:40 AM, Isabel Holdsworth <
<EMAIL REMOVED> > wrote:
> Thanks for your thoughts guys. I'm not sure why wrapping other tags in
> labels makes me uncomfortable, but it does. Perhaps it's just the
> (perceived?) unpredictability of how it might render in different
> browser/AT combinations, and how easy it could be for devs to get it
> wrong, like wrapping a group of radiobuttons in a descriptive
> super-label.
>
> On 12/04/2018, Jonathan Avila < <EMAIL REMOVED> > wrote:
> > In addition, in the past TalkBack had issues with implicit labels that
> > contain input fields and links.
> >
> > Jonathan
> >
> > Jonathan Avila
> > Chief Accessibility Officer
> > Level Access
> > <EMAIL REMOVED>
> > 703.637.8957 office
> >
> > Visit us online:
> > Website | Twitter | Facebook | LinkedIn | Blog
> >
> > Looking to boost your accessibility knowledge? Check out our free
> webinars!
> >
> > The information contained in this transmission may be attorney privileged
> > and/or confidential information intended for the use of the individual or
> > entity named above. If the reader of this message is not the intended
> > recipient, you are hereby notified that any use, dissemination,
> distribution
> > or copying of this communication is strictly prohibited.
> >
> >
- Next message: Jonathan Avila: "Re: Forcing screen reader pronunciation ofabbreviationimportant to a brand"
- Previous message: JP Jamous: "Re: Forcing screen reader pronunciation of abbreviationimportant to a brand"
- Next message in Thread: None
- Previous message in Thread: Isabel Holdsworth: "Re: Anchor inside label?"
- View all messages in this Thread