Side navigation
Ticket #6472: jquery_error.html
File jquery_error.html, 0.6 KB (added by cmdrkeem, April 22, 2010 02:34PM UTC)
Html file demonstrating the error
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>JQuery: $.find() bug</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" />
<script type="text/javascript">
$(document).ready(function() {
alert($("#table1 tr[style*='table-row']").length);
alert($("#table1").find("tr[style*='table-row']").length);
});
</script>
</head>
<body>
<table id="table1">
<tr><td>1</td></tr>
<tr style="display: table-row;"><td>2</td></tr>
<tr><td>3</td></tr>
</table>
</body>
</html>
Download in other formats:
Original Format
File jquery_error.html, 0.6 KB (added by cmdrkeem, April 22, 2010 02:34PM UTC)
Html file demonstrating the error
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>JQuery: $.find() bug</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" />
<script type="text/javascript">
$(document).ready(function() {
alert($("#table1 tr[style*='table-row']").length);
alert($("#table1").find("tr[style*='table-row']").length);
});
</script>
</head>
<body>
<table id="table1">
<tr><td>1</td></tr>
<tr style="display: table-row;"><td>2</td></tr>
<tr><td>3</td></tr>
</table>
</body>
</html>