jQuery: The Write Less, Do More JavaScript Library

Ticket #1482 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: arrix Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

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

Change History

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Committed in SVN rev [2780].

Note: See TracTickets for help on using tickets.