Bug Tracker

Ticket #3377: jquery-ie55.html

File jquery-ie55.html, 801 bytes (added by vdboor, 13 years ago)

Test case for broken ">" selector

Line 
1<html>
2<head>
3<title>IE 5.5 selector test</title>
4<script type="text/javascript" src="jquery.js"></script>
5<style text="text/css">
6  li.drop { color: red; font-weight: bold; }
7</style>
8<script type="text/javascript">
9  if( ! window.jQuery ) alert("jquery.js is missing!");
10
11  $(document).ready( function() {
12   
13    $("#filterSelectionbar > li.drop").css("color", "green");
14
15    alert( "$('#filterSelectionbar > li.drop') = "       + ( $("#filterSelectionbar > li.drop").length )       + " items\n"
16         + "$('#filterSelectionbar').find('li.drop') = " + ( $("#filterSelectionbar").find("li.drop").length ) + " items\n" );
17
18  } );
19
20</script>
21</head>
22
23<body>
24
25  <ul id="filterSelectionbar">
26    <li>li normal</li>
27    <li class="drop">li drop</li>
28    <li>li normal</li>
29  </ul>
30 
31</body>
32</html>