Skip to content
Browse files

Fix for setting document.head in FF4. FF4 already sets document.head …

…and throws a strict warning that the property only has a getter (thanks knittl).
  • Loading branch information...
1 parent 399554f commit 2ff417c72090852c809722d0fb59ef88d26ad99a @cpojer cpojer committed Apr 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Browser/Browser.js
View
2 Source/Browser/Browser.js
@@ -159,7 +159,7 @@ Document.mirror(function(name, method){
});
document.html = document.documentElement;
-document.head = document.getElementsByTagName('head')[0];
+if (!document.head) document.head = document.getElementsByTagName('head')[0];
if (document.execCommand) try {
document.execCommand("BackgroundImageCache", false, true);

0 comments on commit 2ff417c

Please sign in to comment.
Something went wrong with that request. Please try again.