Skip to main content

Bug Tracker

Side navigation

#1482 closed bug (fixed)

Opened August 13, 2007 04:31AM UTC

Closed August 19, 2007 07:06AM UTC

.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

Attachments (0)
Change History (1)

Changed August 19, 2007 07:06AM UTC by john comment:1

resolution: → fixed
status: newclosed

Committed in SVN rev [2780].