From 3bd4de2a87f86e39b649cc33bf28969fc9998fef Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 25 Mar 2010 15:23:02 -0400 Subject: [PATCH] Tooltip: Add role='application' to body when there is no role attribute; required for screenreaders to interpret aria attributes correctly --- ui/jquery.ui.tooltip.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index cc8c559b0..f19e75360 100644 --- a/ui/jquery.ui.tooltip.js +++ b/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", { -- 2.39.5