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

index 7408f3d..5b591aa 100644 (file)
             
             // idea... if the parent has the same style.. then do not apply it to the child?
             if (pstyle && pstyle[prop] == val) {
-                continue;
+            //    continue;
             }
             console.log(prop + '=' + val);
             dom.style[camel] = val;
             console.log(dom.getAttribute('style'));
         }
-        if (dom.nodeName == 'LI') {            throw 'done';        }
+        //if (dom.nodeName == 'LI') {            throw 'done';        }
         
         for (var i = dom.childNodes.length -1; i--; i> -1) {
             fillStyle(dom.childNodes[i]);