| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 5 | <title>Webkit Bugreport / document.querySelectorAll testcase</title> |
|---|
| 6 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> |
|---|
| 7 | </head> |
|---|
| 8 | |
|---|
| 9 | <body> |
|---|
| 10 | |
|---|
| 11 | <h1>Webkit Bugreport / document.querySelectorAll testcase</h1> |
|---|
| 12 | <ul> |
|---|
| 13 | <li class="fruit">orange</li> |
|---|
| 14 | <li>carrot</li> |
|---|
| 15 | <li>potato</li> |
|---|
| 16 | <li class="fruit">apple</li> |
|---|
| 17 | <li>onion</li> |
|---|
| 18 | </ul> |
|---|
| 19 | |
|---|
| 20 | <p> |
|---|
| 21 | 5 list items, 2 have the class .fruit<br /> |
|---|
| 22 | I would like to select the first item that is not a fruit using<br /> |
|---|
| 23 | <strong>$("li:not(.fruit):first")</strong> |
|---|
| 24 | </p> |
|---|
| 25 | <p> |
|---|
| 26 | expected result: <li>carrot</li><br /> |
|---|
| 27 | what I get: [] |
|---|
| 28 | </p> |
|---|
| 29 | </body> |
|---|
| 30 | </html> |
|---|