inliner.js
authorAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:43:56 +0000 (13:43 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:43:56 +0000 (13:43 +0800)
inliner.js

index 8632ffc..f2b4896 100644 (file)
             dom.parentElement.removeChild(dom);
             return;
         }
-        
+        var pstyle = false;
+         if (dom.nodeName != 'BODY') {
+            pstyle = window.getComputedStyle(dom.parentNode, null);
+         
+        }
+        var style = window.getComputedStyle(dom, null);
         
         
         for(var i=0;i<keys.length;i++){