Bug 142005 - AX: Should we sanity-check children of ARIA roles textbox and searchbox?
Summary: AX: Should we sanity-check children of ARIA roles textbox and searchbox?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-24 21:48 PST by Joanmarie Diggs
Modified: 2015-03-02 16:40 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joanmarie Diggs 2015-02-24 21:48:20 PST
While working on bug 142004, I discovered that at least some children of elements with ARIA role textbox are exposed unexpectedly (at least to me). One quick example:

    <div role="textbox"><h1>Heading</h1></div>

I'm not sure to what extent, if any, we should be sanity-checking these ARIA roles. So I'm opening this bug for discussion -- and work if we don't WONTFIX it. I'll implement searchbox support in the meantime.
Comment 1 Radar WebKit Bug Importer 2015-02-24 21:48:37 PST
<rdar://problem/19949343>
Comment 2 chris fleizach 2015-03-01 22:48:23 PST
Is textbox allowed to have children?
Comment 3 Joanmarie Diggs 2015-03-02 16:40:31 PST
(In reply to comment #2)
> Is textbox allowed to have children?

Why not? (She says having given it more thought, discussion with others, and examination of real-world, non-ARIA equivalent use cases.)

* A multi-line ARIA-roled textbox as a rich-text comment-submission field

* A single-line ARIA-roled textbox which has buttons to clear the contents, enable voice-based input, stylize/highlight errors, show results in real time.

* A searchbox in which you can drag and drop an image or some other object or rich text to find "something like this thing". (Along with the button to clear the results, choose the search provider etc.)

The more I think about it the more I think this is a WONTFIX because there's not a Right(tm) or Wrong(tm) candidate child and who knows what creative developers will come up with. <insert shrug here>

The one thing that would be worth doing I think, both here and downstream in our respective platforms, is add regression tests with a variety of things we might not expect in a search box or textbox in order to be sure we, and our platform ATs, don't spit up on them.

Thoughts?