Skip to content
Permalink
Browse files

Tooltip: Add role='application' to body when there is no role attribu…

…te; required for screenreaders to interpret aria attributes correctly
  • Loading branch information
jzaefferer committed Mar 25, 2010
1 parent 32e9d58 commit 3bd4de2a87f86e39b649cc33bf28969fc9998fef
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.tooltip.js
@@ -14,6 +14,11 @@
*/
(function($) {

// role=application on body required for screenreaders to correctly interpret aria attributes
if( !$(document.body).is('[role]') ){
$(document.body).attr('role','application');
}

var increments = 0;

$.widget("ui.tooltip", {

0 comments on commit 3bd4de2

Please sign in to comment.
You can’t perform that action at this time.