Skip to main content

Bug Tracker

Side navigation

Ticket #6234: test.html
File test.html, 0.6 KB (added by btburnett3, March 05, 2010 04:27PM UTC)

Test Case

<html>
<head>
	<style type="text/css">
		#div1 {
			height: 200px;
			width: 200px;
			background-color: #666;
		}
		
		body {margin: 0}
	</style>
	
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(function() {
			//var p = $('#p1');
			
			$('#div1').hover(function(e) {
				p.text(e.type);
			});
		});
	</script>
</head>
<body>
	<div id="div1">
	</div>
	<p id="p1">
		Mousing over the shaded box should throw an exception that p is not defined.
	</p>
</body>
</html>

Download in other formats:

Original Format