<ul id="tabs5-list"></ul>
</div>
</div>
+ <div id="tabs6">
+ <ul id="tabs6-list">
+ <li><a href="#tabs6-1">1</a>
+ <ul>
+ <li><a href="#item6-3">3</a></li>
+ <li><a href="#item6-4">4</a></li>
+ </ul>
+ </li>
+ <li><a href="#tabs6-2">2</a></li>
+ </ul>
+ <div id="tabs6-1"></div>
+ <div id="tabs6-2"></div>
+ </div>
</div>
</body>
</html>
});
+test('#5893 - Sublist in the tab list are considered as tab', function() {
+ // http://dev.jqueryui.com/ticket/5893
+ expect(1);
+
+ el = $('#tabs6').tabs();
+ equals(el.tabs( "length" ), 2, 'should contain 2 tab');
+
+});
+
+
})(jQuery);
fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
this.list = this.element.find( "ol,ul" ).eq( 0 );
- this.lis = $( "li:has(a[href])", this.list );
+ this.lis = $( " > li:has(a[href])", this.list );
this.anchors = this.lis.map(function() {
return $( "a", this )[ 0 ];
});