Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use document.body if it exists

  • Loading branch information...
commit 39ceb000d7cdb67272bdb4beb554e93e2d764c1c 1 parent d3aef7c
@fabiomcosta fabiomcosta authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Slick.Finder.js
View
2  Source/Slick.Finder.js
@@ -57,7 +57,7 @@ local.setDocument = function(document){
var selected, id = 'slick_uniqueid';
var testNode = document.createElement('div');
- var testRoot = document.getElementsByTagName('body')[0] || root;
+ var testRoot = document.body || document.getElementsByTagName('body')[0] || root;
testRoot.appendChild(testNode);
// on non-HTML documents innerHTML and getElementsById doesnt work properly
Please sign in to comment.
Something went wrong with that request. Please try again.