Permalink
Browse files

Merge pull request #4 from unlooped/master

bugfix: In IE element.document is always set to the root document
  • Loading branch information...
2 parents a6f8600 + add61fb commit fd7927cae8d5aa496da6caf544c2a59fd3c6bdba @kamicane committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 finder.js
View
@@ -466,7 +466,7 @@ var combinators = {
Finder.prototype.search = function(context, expression, found){
if (!context) context = this.document
- else if (context.document) context = context.document
+ else if (!context.nodeType && context.document) context = context.document
var expressions = parse(expression)

0 comments on commit fd7927c

Please sign in to comment.