Side navigation
Ticket #4428: testcase.html
File testcase.html, 0.4 KB (added by petersendidit, November 13, 2009 07:52PM UTC)
here is a simplified test case that shows the seelctor problem.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript">
$(function(){
console.log($('div').find('~ span:first').length);
console.log($('div').find('~ span').length);
});
</script>
</head>
<body>
<div></div>
<span></span>
</body>
</html>
Download in other formats:
Original Format
File testcase.html, 0.4 KB (added by petersendidit, November 13, 2009 07:52PM UTC)
here is a simplified test case that shows the seelctor problem.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript">
$(function(){
console.log($('div').find('~ span:first').length);
console.log($('div').find('~ span').length);
});
</script>
</head>
<body>
<div></div>
<span></span>
</body>
</html>