W3C home > Mailing lists > Public > public-canvas-api@w3.org > July to September 2011

setElementPath is needed by accessibility APIs

From: Charles Pritchard <chuck@jumis.com>
Date: Tue, 12 Jul 2011 14:15:35 -0700
Message-ID: <4E1CB977.3030605@jumis.com>
To: Canvas <public-canvas-api@w3.org>
Browser vendor accessibility APIs are simple structures. They are 
managed by the UA and populated by the active DOM.

When vendors chose to OS / platform APIs, they must implement various 
interfaces and perform some role/state conversion:

The existing specification of the Canvas shadow dom allows authors to 
support assistive software running outside of the browser,
interfacing with the platform accessibility API.

HTML5 elements in the canvas shadow dom should be focusable and present 
in the vendor accessibility tree.
Microsoft's IE9 is the first browser to implement the shadow dom 
correctly. The drawFocusRing method included
in IE9, and Microsoft's first implementation of the Canvas 2d context, 
demonstrates the shadow dom in action.

There are two common methods which the UA can -not- glean from the 
shadow dom, without assistance from authors.
Those methods remain unusable by ATs, as the Canvas 2d spec does not 
provide a means for authors to pass that information.

In the vendor accessibility API I've referred to (see: 
browser_accessibility.cc) these method are:

In the platform-specific API, targeting MSAA (see: 
browser_accessibility_win.cc) these methods are:

I've proposed that browser vendors permit authors to support those 
interfaces by
adding the method setElementPath(Node element) to the Canvas 2d api.

Argument for the approval of adding setElementPath to the Canvas 2d 

Authors and vendors are currently unable to provide usable information 
for the two methods I've described,
limiting the usefulness of assistive technologies using platform 
accessibility APIs. These methods are required
by various assistive technology products.

Canvas Accessibility for Pointer Events and Spatial Awareness

This is a straightforward API issue that should be addressed by vendors.

I encourage vendors to follow Microsoft's lead in implementing drawFocusRing
and properly implementing the canvas shadow dom. I encourage Microsoft
to continue leading, and implement setElementPath, enabling platform
level assistive technologies to enhance user experience.

Received on Tuesday, 12 July 2011 21:16:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:10:32 UTC