W3C home > Mailing lists > Public > public-html-a11y@w3.org > January 2011

Solution to grammar, spelling, and

From: Richard Schwerdtfeger <schwer@us.ibm.com>
Date: Thu, 6 Jan 2011 18:28:18 -0600
To: public-canvas-api@w3.org, franko@microsoft.com, david.bolter@gmail.com, Charles Pritchard <chuck@jumis.com>, public-html-a11y@w3.org
Message-ID: <OF6571658B.CC925E21-ON86257811.000141D6-86257811.000297AF@us.ibm.com>

So, over the break we (David, Charles, and I) discussed a way to address
the grammar, spelling, and caret tracking issues in the canvas subtree
without having to introduce new HTML tags or requiring exposing new APIs
that provide this information to canvas application authors having to synch
the canvas to the canvas subtree.

The alternative solution is to use ARIA with some slight modifications:

In the canvas subtree we would simply make use of aria-invalid which
already exposes grammar and spelling errors and it is a global attribute in
ARIA 1.0:

<mark aria-invalid="grammar"> See run Spot. </mark>
<mark aria-invalid="spelling">See Spot Rn. </mark>

As for selected content we simply do apply aria-selected="true" to any

<mark aria-selected="true"> ... </div>

The modification would be to make aria-selected an ARIA global attribute
and address the accessibility API mapping for it. This is very straight

For a caret we simply have a collapsed section:

<mark aria-selected="true"></mark>

This is all very clean, requires minimal impact to the existing browser
implementations and in fact puts more control in the hands of cloud-based
offerings where they are not limited to what the browser is doing for them
in contenteditable sections.

Frank would you and the IE team support this approach? I would like to
discuss this on Monday's call as well.

Rich Schwerdtfeger
CTO Accessibility Software Group
Received on Friday, 7 January 2011 00:29:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:17 UTC