Bug Tracker

Ticket #4797: firefox-crash.html

File firefox-crash.html, 897 bytes (added by coreyti, 10 years ago)

example for crash

Line 
1<html>
2<!-- note: doctype/namespace changes do not matter -->
3<head>
4  <title>crash firefox</title>
5  <script type="text/javascript" src="javascripts/jquery.js"></script>
6  <script type="text/javascript">
7$(function() {
8  // does not crash from "live"-bound clicks...
9  // $('label').live('click', function() {
10
11  $('label').click(function() {
12    // crashing selections:   $(this), $(this).children('input, span')... any inline element
13    // crashing values:       block, inherit, list-item, inline-block, inline-table, table-*
14
15    // order is important...
16    $(this).css('display', 'block');
17    $('div#container').hide();
18  });
19
20  // does not crash from programmatic click; click it yourself...
21  // $('label').click();
22});
23  </script>
24</head>
25
26<body>
27  <div id="container">
28    <label id="label">
29      click me to crash
30      <input type="checkbox" />
31    </label>
32  </div>
33</body>
34</html>