Commit fde2867f authored by John Resig's avatar John Resig

Added a fix for #891 (Using a /foo selector within a non-document context.)

parent 32b523b5
...@@ -126,7 +126,7 @@ jQuery.extend({ ...@@ -126,7 +126,7 @@ jQuery.extend({
t = t.substr(2,t.length); t = t.substr(2,t.length);
// And the / root expression // And the / root expression
} else if ( !t.indexOf("/") ) { } else if ( !t.indexOf("/") && !context.ownerDocument ) {
context = context.documentElement; context = context.documentElement;
t = t.substr(1,t.length); t = t.substr(1,t.length);
if ( t.indexOf("/") >= 1 ) if ( t.indexOf("/") >= 1 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment