A jQuery plugin that adds support for ARIA attributes. See branches for new methods from this fork.
Clone or download
Pull request Compare This branch is 4 commits ahead of orgsync:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
src
.gitignore
CHANGELOG.md
LICENSE.txt
README.md
aria.jquery.json
bower.json

README.md

jQuery ARIA

Code Climate

A jQuery plugin that adds support for ARIA attributes.

jQuery methods:

  • .aria
  • .removeAria
  • .hasAria

jQuery object methods:

  • .aria
  • .removeAria
  • .addRole
  • .removeRole
  • .toggleRole
  • .hasRole

Planned methods (by nothrem)

  • .atomic (find closest parent with aria-atomic=true attribute, returning itself if none found or found one with aria-atomic=false)
  • .related (find all elements listed in an aria atribute containing id list)
  • .addRelated/.removeRelated (edit an aria atribute with id list; should support both adding ids and whole elements, even without ids, generating ids on-the-fly)
  • .hide/.show (correctly change aria-hidden for hidden elements)
  • .val (read or set value from/to aria-valuenow on elements with slider, spinbutton and progressbar role)
  • .button (correctly change aria-pressed for JQUI buttons; if JQUI is installed)

This project uses Semantic Versioning.

Documentation

The source code is fully documented.

License

This is licensed under the MIT license. The license itself can be found in the source.