Skip to main content

Bug Tracker

Side navigation

Ticket #1529: crash.html


File crash.html, 0.9 KB (added by mkirst, August 23, 2007 11:31AM UTC)

sample html code

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>provocating crash with jquery and json</title>

<!-- uncomment the correct version. -->
<!-- <script type="text/javascript" src="json-2006-11-09.js"></script> -->
<script type="text/javascript" src="json-2007-08-19.js"></script>

<script type="text/javascript" src="jquery-1.1.3.1.js"></script>
<script type="text/javascript">
run = function() {
	jQuery.noConflict();
	jQuery("#foo").css("background-color", "red");  // knock out for json-2006-11-09
	jQuery("#foo").find("P").clone();               // knock out for json-2007-08-19
}
</script>
</head>
<body onload="run();">
<div id="foo">
	<h1>Hello World</h1>
	<p id="bar">Lorem ipsum eam ea vero prima facilisis, takimata interesset est ne.</p>
</div>
</body>
</html>

Download in other formats:

Original Format