Bug Tracker

Modify

Ticket #3865 (closed bug: duplicate)

Opened 4 years ago

Last modified 15 months ago

After jQuery update to v1.3 - Infinite loop cause Firefox hangs and IE error.

Reported by: soswow Owned by: john
Priority: critical Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocking: Blocked by:

Description

After updating to jQuery to version 1.3 my old script start killing Firefox and cause IE error.

Try to run this code with jQuery 1.3:

$(function(){
    $("#main LI:not(.current) A").css("background-color","gray");
  });

With HTML:

<div id="main">

<ul>

<li class="current"><a href="#">Current</a></li> <li class="item"><a href="#">Item</a></li> <li class="item"><a href="#">Item</a></li>

</ul>

</div>

And you get Firefox fail. IE with text: "Stop running this script?

A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may bacome unresponsive"

Chrome works fine.

Attachments

test2.html Download (721 bytes) - added by soswow 4 years ago.
Reproduction test file

Change History

Changed 4 years ago by soswow

Reproduction test file

comment:1 Changed 4 years ago by john

  • Version set to 1.3
  • Milestone changed from 1.3 to 1.3.1

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate

Ok, it looks like this is a duplicate of #3837.

comment:3 Changed 4 years ago by soswow

john, Yes. Sorry, I realy tried to use search before creating new ticket. Next time I will be more considerate.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.