Bug Tracker

Ticket #6838: test-6838.html

File test-6838.html, 696 bytes (added by dmethvin, 10 years ago)

Test case

Line 
1<!DOCTYPE html> 
2<html xmlns="http://www.w3.org/1999/xhtml"> 
3<head> 
4<title></title> 
5<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js" type="text/javascript"></script>
6<script type="text/javascript"> 
7$(document).ready(function(){
8
9var s = '';
10s += '$(".Item:not(:first)").length '      + $(".Item:not(:first)").length + '\n';
11s += '$(".Item:not(.Item:first)").length ' + $(".Item:not(.Item:first)").length + '\n';
12var first = $(":first");
13s += '$(":first") nodeName ' + first[0].nodeName + ', nodeType=' + first[0].nodeType;
14alert(s);
15
16});
17</script> 
18</head> 
19<body> 
20
21<h1>Header</h1>
22<div class="Item">Item 1</div>
23<div class="Item">Item 2</div>
24
25
26</body> 
27</html>