Added a fix for #891 (Using a /foo selector within a non-document context.)
This commit is contained in:
parent
32b523b5c5
commit
fde2867fce
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue