diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-25 15:23:02 -0400 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-25 15:23:02 -0400 |
commit | 3bd4de2a87f86e39b649cc33bf28969fc9998fef (patch) | |
tree | dc253b25751bb019b49d20ca4c7b9d61e9bf0529 /ui/jquery.ui.tooltip.js | |
parent | 32e9d589639367098c942affa76aee9e5becdbc1 (diff) | |
download | jquery-ui-3bd4de2a87f86e39b649cc33bf28969fc9998fef.tar.gz jquery-ui-3bd4de2a87f86e39b649cc33bf28969fc9998fef.zip |
Tooltip: Add role='application' to body when there is no role attribute; required for screenreaders to interpret aria attributes correctly
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
1 files changed, 5 insertions, 0 deletions
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", { |