Skip to main content

Bug Tracker

Side navigation

Ticket #6441: test-6441.html
File test-6441.html, 0.5 KB (added by dmethvin, April 16, 2010 12:45AM UTC)

Test case for #6441

<!DOCTYPE html>

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
     
<script type="text/javascript">
$(function(){
	var offset = $('#div1').offset(); //works
	offset['top'] += $('#div1').outerHeight();
	offset['left'] += $('#div1').outerWidth();
	$('#div2').offset(offset); //fails
	var x = 1;
});
</script>
</head>
<body>

<div id="div2">I am div 2 moo moo</div>
<div id="div1">I am div 1 quack quack</div>



</body>
</html>

Download in other formats:

Original Format