ux/ieconsole.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 05:14:48 +0000 (13:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 05:14:48 +0000 (13:14 +0800)
ux/ieconsole.js

index 616bc5b..cf0197d 100644 (file)
@@ -18,7 +18,7 @@ if(!window.console){
             }
             console.hide();
             var st = document.createElement('style');
-            st.innerHTML = "\n" + 
+            st.appendChild(document.createTextNode("\n" + 
                 '#fauxconsole{' +
                 '    position:absolute;' +
                 '    top:0;'+
@@ -38,7 +38,7 @@ if(!window.console){
                 '    padding-left:1em;'+
                 '    padding-bottom:.5em;'+
                 '    text-align:right;'+
-                '}'; 
+                '}'))
             
             
             document.body.appendChild(st);