WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Placeholder and Accessible Name Computation

for

From: Steve Faulkner
Date: May 9, 2019 5:03AM


placeholder was added back in to reflect the reality that browsers expose
placeholder as an accessible name in the absence of other sources for it.
Whether one agrees or not with its inclusion, if browsers implement
something and cannot be convinced to change it, we as spec writers document
what is implemented. there is a related ARIA thread which may be of
interest https://github.com/w3c/accname/issues/17

As far as what spec to look at, the living spec
https://w3c.github.io/html-aam/ is probably most accurate and the one to
file issues on

--

Regards

SteveF
Accessibility is political[image: ✊]
Working for the web
<https://twitter.com/stevefaulkner/status/940835584410574850>,
anywhere and everywhere [image: 🖖🏽]


On Thu, 9 May 2019 at 10:18, Steve Green < <EMAIL REMOVED> >
wrote:

> The change log at https://w3c.github.io/html-aam/#a-1-change-log shows
> that placeholder was removed from the computation in 2016 and reintroduced
> this year. This change does not yet appear on the W3C website, so I guess
> it's not official yet, but I don't really understand the status of the
> GitHub website.
>
> Steve
>
>
> -----Original Message-----
> From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of
> glen walker
> Sent: 09 May 2019 00:22
> To: WebAIM Discussion List < <EMAIL REMOVED> >
> Subject: Re: [WebAIM] Placeholder and Accessible Name Computation
>
> Joe, I think you need to finish the sentence from the spec regarding
> native markup.
>
> "Otherwise, if the current node's native markup provides an attribute (e.g.
> title) or element (e.g. HTML label) **that defines a text alternative**..."
> (emphasis mine)
>
> So, yes, the placeholder attribute is a native markup attribute but it is
> not an attribute that defines a text alternative. As several have noted,
> it's hint and not a text alternative so shouldn't be included in the name
> calculation.
>
>
> On Wed, May 8, 2019 at 2:12 PM < <EMAIL REMOVED> > wrote:
>
> >
> > The Accessible Name and Description Computation 1.2 does not mention
> > it specifically, but it mentions " Otherwise, if the current node's
> > native markup provides an attribute (e.g. title)" from Step D.
> >
> > The placeholder attribute is a native HTML attribute for <input>
> elements.
> >
> > Thankx,
> > Joe Humbert
> >
> >
> > > at http://webaim.org/discussion/archives
> > > > > >