Tooltip: Add role='application' to body when there is no role attribute; required for screenreaders to interpret aria attributes correctly

This commit is contained in:
jzaefferer 2010-03-25 15:23:02 -04:00
parent 32e9d58963
commit 3bd4de2a87

View File

@ -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", {