aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index a006f3bf7..924ce4121 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -123,7 +123,10 @@ $.widget( "ui.tooltip", {
// if we have a title, clear it to prevent the native tooltip
// we have to check first to avoid defining a title if none exists
// (we don't want to cause an element to start matching [title])
- // TODO: document why we don't use .removeAttr()
+
+ // We don't use removeAttr as that causes the native tooltip to show
+ // up in IE (9 and below, didn't yet test 10). Happens only when removing
+ // inside the mouseover handler.
if ( target.is( "[title]" ) ) {
target.attr( "title", "" );
}