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 fde2867fce7b592096ae529ab5dcd0842e52f2ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/selector/selector.js
@@ -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.
You can’t perform that action at this time.