Skip to main content

Bug Tracker

Side navigation

Ticket #6838: test-6838.html


File test-6838.html, 0.7 KB (added by dmethvin, August 04, 2010 02:21AM UTC)

Test case

<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title></title> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(document).ready(function(){

var s = '';
s += '$(".Item:not(:first)").length '      + $(".Item:not(:first)").length + '\n';
s += '$(".Item:not(.Item:first)").length ' + $(".Item:not(.Item:first)").length + '\n';
var first = $(":first");
s += '$(":first") nodeName ' + first[0].nodeName + ', nodeType=' + first[0].nodeType;
alert(s);

});
</script> 
</head> 
<body> 

<h1>Header</h1>
<div class="Item">Item 1</div>
<div class="Item">Item 2</div>


</body> 
</html>

Download in other formats:

Original Format