Skip to main content

Bug Tracker

Side navigation

Ticket #3921: test.html
File test.html, 0.5 KB (added by quaff, January 20, 2009 06:26AM UTC)
<html
	<head>
		<script src="jquery.js" type="text/javascript"></script>
		<script>
			$(function(){
				alert($('div.tabs > ul').length);//expect 1 but result is 2 using jquery1.3,result is correct when using jquery1.2.6
				alert($('div.tabs  ul').length);//expect 1 and result is correct
			});
		</script>
	</head>
	<body>
		<ul><ul><li>test</li></ul></ul><!--remove this line and result is correct-->
		<div><ul><li>test</li></ul></div>
		<div class="tabs"><ul><li>test</li></ul></div>
	</body>
</html>

Download in other formats:

Original Format