Skip to main content

Bug Tracker

Side navigation

Ticket #4571: ie_err.html
File ie_err.html, 0.7 KB (added by gal_ga, April 22, 2009 08:05AM UTC)

IE throws error when trying to set negative value to CSS padding property

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>IE error</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- <script type="text/javascript" src="jquery-1.3.2.js"></script> -->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
	<script type="text/javascript">
		function ClickMe()
		{
			try {
				$("#BlockA").css('paddingTop','-1');
			}
			catch(e) {
				alert( 'Error: ' + ((jQuery.browser.msie) ? e.description : e) );
			}
		}
	</script>
</head>
<body>
	<div id="BlockA">Just a DIV</div>
	<p>
		<a href="javascript:void(0);" onclick="ClickMe();">Click Me</a>
	</p>
</body>
</html>

Download in other formats:

Original Format