Bug Tracker

Ticket #4058: find-testcase.htm

File find-testcase.htm, 717 bytes (added by ricardobeat, 11 years ago)

Short test-case

Line 
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="en" lang="en">
3<head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
6    <script type="text/javascript">
7        $(function() {
8                        var container = $('#container');
9
10                        container.find('.selected');
11                        $('p').addClass('selected');
12                        console.log( !!container.find('.selected').length );
13        });
14    </script>
15</head>
16<body>
17    <div id="container"><p class="om">test</p></div>
18</body>
19</html>