Bug Tracker

Ticket #3380: t.htm

File t.htm, 359 bytes (added by dmethvin, 12 years ago)

Repro case for .hasClass(".name") bug

Line 
1<html>
2<head>
3<title>Test</title>
4<script type="text/javascript" src="jquery-1.2.6.js"> </script>
5<script type="text/javascript">
6$().ready(function(){
7  alert($("div").hasClass("x"));  // alerts true
8  alert($("div").hasClass(".x")); // never returns
9  alert("got here")
10});
11</script>
12</head>
13<body>
14
15<div class="x"></div>
16
17</body>
18</html>