Skip to main content

Bug Tracker

Side navigation

#3889 closed bug (duplicate)

Opened January 16, 2009 11:58AM UTC

Closed January 17, 2009 10:34PM UTC

:not selector causes infinit loop on Firefox

Reported by: mihaic Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: :not Cc:
Blocked by: Blocking:
Description

If the selector contains a tag and then a :not it causes an infinit loop on Firefox 3.0.5. Works OK on IE7.

This is the test code to reproduce it:

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="jquery-1.3.js"></script>

<script type="text/javascript">

function bug(){

$("a.myClass:not(.myOtherClass)").addClass("myOtherClass");

}

</script>

</head>

<body>

<a class="myClass myOtherClass">test link</a>

<input type="button" value="test" onclick="bug()"/>

</body>

</html>

Attachments (0)
Change History (1)

Changed January 17, 2009 10:34PM UTC by john comment:1

resolution: → duplicate
status: newclosed

Duplicate of #3837.