Side navigation
Ticket #3848: test-case-adamh.html
File test-case-adamh.html, 0.7 KB (added by adamh, January 16, 2009 05:55PM UTC)
Should alert("Yay, it works"); alerts, "WHY AM I SELECTED?"
<!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>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js" type="text/javascript"></script>
<title>Bug #3848</title>
</head>
<body>
<div>
<div>
<span>
<a href="/">I am needed to circumvent #3894; I am not selected</a>
</span>
<ul>
<li>
<a href="/">WHY AM I SELECTED?</a>
</li>
</ul>
</div>
</div>
<script type="text/javascript">
alert(jQuery('div.a > div.b > ul > li > a').text() || "Yay, it works");
</script>
</body>
</html>
Download in other formats:
Original Format
File test-case-adamh.html, 0.7 KB (added by adamh, January 16, 2009 05:55PM UTC)
Should alert("Yay, it works"); alerts, "WHY AM I SELECTED?"
<!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>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js" type="text/javascript"></script>
<title>Bug #3848</title>
</head>
<body>
<div>
<div>
<span>
<a href="/">I am needed to circumvent #3894; I am not selected</a>
</span>
<ul>
<li>
<a href="/">WHY AM I SELECTED?</a>
</li>
</ul>
</div>
</div>
<script type="text/javascript">
alert(jQuery('div.a > div.b > ul > li > a').text() || "Yay, it works");
</script>
</body>
</html>