Bug Tracker

Opened 14 years ago

Closed 14 years ago

#1482 closed bug (fixed)

.curCSS() fails in safari when elem has no .parentNode

Reported by: arrix Owned by:
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:

Description

Index: E:/zm/jquery/jquery/src/jquery/jquery.js
===================================================================
--- E:/zm/jquery/jquery/src/jquery/jquery.js	(revision 2668)
+++ E:/zm/jquery/jquery/src/jquery/jquery.js	(working copy)
@@ -1509,7 +1509,7 @@
 			// then some display: none elements are involved
 			else {
 				// Locate all of the parent display: none elements
-				for ( var a = elem; color(a); a = a.parentNode )
+				for ( var a = elem; a && color(a); a = a.parentNode )
 					stack.unshift(a);
 
 				// Go through and make them visible, but in reverse

Change History (1)

comment:1 Changed 14 years ago by john

Resolution: fixed
Status: newclosed

Committed in SVN rev [2780].

Note: See TracTickets for help on using tickets.