From daacbaf22180cc269fb730d8652d5ee72389a6d0 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Sun, 19 Feb 2012 21:17:35 +0100 Subject: Tooltip: Document why we don't use removeAttr --- ui/jquery.ui.tooltip.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui') 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", "" ); } -- cgit v1.2.3