Bug Tracker

Ticket #1361: test.html

File test.html, 751 bytes (added by aportale, 13 years ago)

Demonstration of the broken selector. Works in 1.1.2

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5    <title>jQuery: The Write Less, Do More, JavaScript Library</title>
6    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
7    <script type="text/javascript">
8        function go()
9        {
10            $("h1 + h2").css("background-color", "yellow");
11        }
12
13        $(document).ready(function(){go();});
14    </script>
15</head>
16    <body>
17        <h1>H1</h1>
18        <h2>H2 (background should be yellow)</h2>
19    </body>
20</html>
21
22