From 2cef124bf27ce89f1fbfc493352ebfd895b40822 Mon Sep 17 00:00:00 2001 From: Jiabao Wu Date: Wed, 22 Apr 2015 10:20:11 -0400 Subject: Tooltip: Remove name attribute from elements in the live region Fixes #11272 Closes gh-1544 --- tests/unit/tooltip/core.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/unit/tooltip') diff --git a/tests/unit/tooltip/core.js b/tests/unit/tooltip/core.js index fa24d72ce..135fa480b 100644 --- a/tests/unit/tooltip/core.js +++ b/tests/unit/tooltip/core.js @@ -221,4 +221,29 @@ asyncTest( "multiple active delegated tooltips", function() { step1(); }); +// http://bugs.jqueryui.com/ticket/11272 +test( "remove conflicting attributes from live region", function() { + expect( 2 ); + + var element = $( + "
" + + "" + + "" + + "" + + "" + + "
" ); + + $( "#tooltipped1" ) + .tooltip({ + content: element, + open: function() { + equal( $( ".ui-helper-hidden-accessible [name]" ).length, 0, + "no name attributes within live region" ); + equal( $( ".ui-helper-hidden-accessible [id]" ).length, 0, + "no id attributes within live region" ); + } + }) + .tooltip( "open" ); +}); + } ); -- cgit v1.2.3