Skip to content

Commit

Permalink
use document.body if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomcosta committed Feb 20, 2011
1 parent d3aef7c commit 39ceb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Slick.Finder.js
Expand Up @@ -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
Expand Down

0 comments on commit 39ceb00

Please sign in to comment.