RE: [REVIEW REQUESTED][ARIA] placeholder

+1!

From: Matthew King [mailto:mattking@us.ibm.com]
Sent: Thursday, April 02, 2015 2:01 PM
To: Joseph Scheuhammer
Cc: Joanmarie Diggs; W3C WAI Protocols & Formats; Alexander Surkov
Subject: Re: [REVIEW REQUESTED][ARIA] placeholder

Joseph, I agree 100%, AT should have knowledge of the fact there is a placeholder and the fact that it is a placeholder. Let the AT, not the browser, decide what to do when information is incomplete.
And, when name and description are both provided, let the AT decide if or how best to communicate placeholder in addition to name and description.
This approach also simplifies matters for designers and developers.

Matt King
IBM Senior Technical Staff Member
I/T Chief Accessibility Strategist
IBM BT/CIO - Global Workforce and Web Process Enablement
Phone: (503) 578-2329, Tie line: 731-7398
mattking@us.ibm.com<mailto:mattking@us.ibm.com>



From:        Joseph Scheuhammer <clown@alum.mit.edu<mailto:clown@alum.mit.edu>>
To:        Alexander Surkov <surkov.alexander@gmail.com<mailto:surkov.alexander@gmail.com>>, Joanmarie Diggs <jdiggs@igalia.com<mailto:jdiggs@igalia.com>>,
Cc:        W3C WAI Protocols & Formats <public-pfwg@w3.org<mailto:public-pfwg@w3.org>>
Date:        04/02/2015 01:52 PM
Subject:        Re: [REVIEW REQUESTED][ARIA] placeholder
________________________________



On 2015-04-02 3:36 PM, Alexander Surkov wrote:
> Hey. I'm agree that placeholder has different semantics than label and
> value but I'm still not certain about how this semantics can be used
> by AT. The point is if there's no consumers for it then there's no
> great benefit from having it. Iirc we started this chat before but I
> don't recall what outcome was. SO do we have any data how AT
> developers want to handle @placeholder? Firefox was used to map HTML
> @placeholder into accessible name and it seems it worked fine with AT.

Given:
<input  type="text" value="" placeholder="MM-DD-YYYY">

I don't see how "MM-DD-YYYY" is a useful accessible name.  An AT
presenting "MM-DD-YYYY" might communicate that a date is needed. But
which date?

I suggest a "placeholder" property for accessible objects.  AX API
already supports one.  The accessible would look something like:

{
  role: textEntry,
  name: "",
  description: ""
  value: "",
  placeholder: "MM-DD-YYYY",
  ...
}

The AT could then take this approach given the above accessible:
1. Use the accessible name if present,
2. Otherwise, use the accessible description,
3. Otherwise, use the placeholder.

In other words, the browser maps the different pieces of information to
different accessible properties.  The AT decides how to use that
information.

Also, in general, the AT needs to know that this text is placeholder
text.  Since the purpose of @placeholder is to provide a clue as to the
format of the input value, then the AT needs to communicate that as
well.   For example, if a screen reader knows that the text is
*placeholder* text, it can point that out.  It can say "the placeholder
for this text entry is 'MM-DD-YYYY'".  If the placeholder text is mapped
to the accessible name, the screen reader no longer has any idea about
placeholders.  All it can say is, "text entry named 'MM-DD-YYYY'", and
the whole point of having a @placeholder is lost.

> I'm not sure I agree that placeholder cannot be used instead of label.

Sure, if that's all the author provided.  But I don't think that's the
browser's decision to make.

--
;;;;joseph.

'Array(16).join("wat" - 1) + " Batman!"'
           - G. Bernhardt -

Received on Friday, 3 April 2015 02:03:52 UTC