jaz303/tipsy — pull request #120 by cheshrkat (2012-09-24 02:53:07+00:00)
Title: Add ARIA support (accessibility fix)

Currently tooltips aren't vocalised by screen readers as they aren't associated in any way.

Added an option aria:true (default false) which...
* sets tooltip role to tooltip
* adds a generated ID to the tooltips
* uses that ID to set aria-describedby

Dependency/assumption: the author must have set role application or document on a parent element for ARIA to work but that's beyond the scope that Tipsy can assert ARIA attributes. It seems appropriate to leave that to the author; noted the dependency in the docs.

Tested using Firefox 15 and NVDA.

Couldn't get the docs to build on my machine so I hope the formatting is ok.

Test file (drop in parent dir of tipsy clone):
```html

Page Title

NB: role application or document must be set on parent for screen readers to vocalise this.

tooltip

tooltip

tooltip

tooltip aria false

```