Bug Tracker

Ticket #3848: test-case-adamh.html

File test-case-adamh.html, 742 bytes (added by adamh, 14 years ago)

Should alert("Yay, it works"); alerts, "WHY AM I SELECTED?"

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js" type="text/javascript"></script>
6    <title>Bug #3848</title>
7  </head>
8 
9  <body>
10    <div>
11      <div>
12        <span>
13          <a href="/">I am needed to circumvent #3894; I am not selected</a>
14        </span>
15        <ul>
16          <li>
17            <a href="/">WHY AM I SELECTED?</a>
18          </li>
19        </ul>
20      </div>
21    </div>
22    <script type="text/javascript">
23      alert(jQuery('div.a > div.b > ul > li > a').text() || "Yay, it works");
24    </script>
25  </body>
26</html>