Re: Firefox Accessibility Inspector reports placeholder attribute as eligible for accessible name

> Wouldn't the failure also have to include "when the placeholder disappears on focus" or some such?

I think we can rely (and link to) the description of placeholder:
“User agents should present this hint to the user … when the element’s value is the empty string…”
https://www.w3.org/TR/html52/sec-forms.html#the-placeholder-attribute


From a little test: Browsers generally leave the placeholder on focus, but remove it when there is any character added.
https://codepen.io/alastc/pen/mjaevw


Cheers,

-Alastair

Received on Thursday, 9 August 2018 16:10:08 UTC