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

index 0fc5eb1..8632ffc 100644 (file)
@@ -45,7 +45,9 @@
             //returns[camel] = val;
             
             // idea... if the parent has the same style.. then do not apply it to the child?
-            
+            if (dom.nodeName != 'BODY' && dom.parentNode.style[prop] == val) {
+                continue;
+            }
             
             dom.style[prop] = val;
         }