Skip to main content

Bug Tracker

Side navigation

Ticket #6532: testcase.html


File testcase.html, 0.9 KB (added by gyolk, May 05, 2010 05:21PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Webkit Bugreport / document.querySelectorAll testcase</title>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
</head>

<body>
  
  <h1>Webkit Bugreport / document.querySelectorAll testcase</h1>
  <ul>
    <li class="fruit">orange</li>
    <li>carrot</li>
    <li>potato</li>
    <li class="fruit">apple</li>
    <li>onion</li>
  </ul>
  
  <p>
    5 list items, 2 have the class .fruit<br />
    I would like to select the first item that is not a fruit using<br />
    <strong>$("li:not(.fruit):first")</strong>
  </p>
  <p>
    expected result: &lt;li&gt;carrot&lt;/li&gt;<br />
    what I get: []
  </p>
</body>
</html>

Download in other formats:

Original Format