From c8360e619b03235e5b7fc5272f0a6722707d2312 Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Sun, 1 Feb 2009 21:09:02 +0000 Subject: Tabs: Fixed IE bug which would mistake tabs as ajax with dynamically created HTML, fixes #4033 --- tests/unit/tabs/tabs.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') diff --git a/tests/unit/tabs/tabs.js b/tests/unit/tabs/tabs.js index 1c470bf7b..1ffa08bbf 100644 --- a/tests/unit/tabs/tabs.js +++ b/tests/unit/tabs/tabs.js @@ -262,6 +262,17 @@ module('tabs: Tickets'); equals( $('a:eq(2)', el).data('load.tabs'), 'test.html', 'should ignore fragment identifier' ); }); + + test('IE expands hash to full url and misinterprets tab as ajax, #4033', function() { // http://ui.jquery.com/bugs/ticket/4033 + expect(1); + + el = $('
') + .appendTo('#main').tabs(); + + equals($('a', el).data('load.tabs'), undefined, 'should not create ajax tab'); + + }); + // test('', function() { // expect(0); -- cgit v1.2.3