Skip to content
Permalink
Browse files
Added a fix for #891 (Using a /foo selector within a non-document con…
…text.)
  • Loading branch information
jeresig committed Mar 24, 2007
1 parent 32b523b commit fde2867
Showing 1 changed file with 1 addition and 1 deletion.
@@ -126,7 +126,7 @@ jQuery.extend({
t = t.substr(2,t.length);

// And the / root expression
} else if ( !t.indexOf("/") ) {
} else if ( !t.indexOf("/") && !context.ownerDocument ) {
context = context.documentElement;
t = t.substr(1,t.length);
if ( t.indexOf("/") >= 1 )

0 comments on commit fde2867

Please sign in to comment.