Skip to main content

Bug Tracker

Side navigation

Ticket #4797: firefox-crash.html


File firefox-crash.html, 0.9 KB (added by coreyti, June 20, 2009 09:09PM UTC)

example for crash

<html>
<!-- note: doctype/namespace changes do not matter -->
<head>
  <title>crash firefox</title>
  <script type="text/javascript" src="javascripts/jquery.js"></script>
  <script type="text/javascript">
$(function() {
  // does not crash from "live"-bound clicks...
  // $('label').live('click', function() {

  $('label').click(function() {
    // crashing selections:   $(this), $(this).children('input, span')... any inline element
    // crashing values:       block, inherit, list-item, inline-block, inline-table, table-*

    // order is important...
    $(this).css('display', 'block');
    $('div#container').hide();
  });

  // does not crash from programmatic click; click it yourself...
  // $('label').click();
});
  </script>
</head>

<body>
  <div id="container">
    <label id="label">
      click me to crash
      <input type="checkbox" />
    </label>
  </div>
</body>
</html>

Download in other formats:

Original Format