Bug Tracker

Ticket #1529: crash.html

File crash.html, 928 bytes (added by mkirst, 13 years ago)

sample html code

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>provocating crash with jquery and json</title>
6
7<!-- uncomment the correct version. -->
8<!-- <script type="text/javascript" src="json-2006-11-09.js"></script> -->
9<script type="text/javascript" src="json-2007-08-19.js"></script>
10
11<script type="text/javascript" src="jquery-1.1.3.1.js"></script>
12<script type="text/javascript">
13run = function() {
14        jQuery.noConflict();
15        jQuery("#foo").css("background-color", "red");  // knock out for json-2006-11-09
16        jQuery("#foo").find("P").clone();               // knock out for json-2007-08-19
17}
18</script>
19</head>
20<body onload="run();">
21<div id="foo">
22        <h1>Hello World</h1>
23        <p id="bar">Lorem ipsum eam ea vero prima facilisis, takimata interesset est ne.</p>
24</div>
25</body>
26</html>