Permalink
Browse files

bugfix: In IE element.document is always set to the root document

  • Loading branch information...
1 parent a6f8600 commit add61fb46013d9da80dd2ffbafc2dbc53563ae82 @n3o77 n3o77 committed Mar 12, 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 add61fb

Please sign in to comment.