Side navigation
Ticket #1361: test.html
File test.html, 0.7 KB (added by aportale, July 05, 2007 12:58PM UTC)
Demonstration of the broken selector. Works in 1.1.2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery: The Write Less, Do More, JavaScript Library</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript">
function go()
{
$("h1 + h2").css("background-color", "yellow");
}
$(document).ready(function(){go();});
</script>
</head>
<body>
<h1>H1</h1>
<h2>H2 (background should be yellow)</h2>
</body>
</html>
Download in other formats:
Original Format
File test.html, 0.7 KB (added by aportale, July 05, 2007 12:58PM UTC)
Demonstration of the broken selector. Works in 1.1.2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery: The Write Less, Do More, JavaScript Library</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript">
function go()
{
$("h1 + h2").css("background-color", "yellow");
}
$(document).ready(function(){go();});
</script>
</head>
<body>
<h1>H1</h1>
<h2>H2 (background should be yellow)</h2>
</body>
</html>