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

<!-- note: doctype/namespace changes do not matter -->
  <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');

  // does not crash from programmatic click; click it yourself...
  // $('label').click();

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

Download in other formats:

Original Format