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

index b6687ba..d3b6dfc 100644 (file)
         }
          
         
+        
+        //if (dom.nodeName == 'LI') {            throw 'done';        }
+        
+        for (var i = dom.childNodes.length -1; i--; i> -1) {
+            fillStyle(dom.childNodes[i]);
+        }
+        
         for(var i=0;i<style.length;i++){
             var prop = style[i];
             var camel = prop.replace(/\-([a-z])/g, camelize);
             //    continue;
             }
             console.log(prop + '=' + val);
-            dom.style[camel] = val;
-            
             
+            dom.style[camel] = val;
+         
             
         }
-        var es = dom.getAttribute('style');
-        dom.setAttribute('style', '');
-        //if (dom.nodeName == 'LI') {            throw 'done';        }
-        
-        for (var i = dom.childNodes.length -1; i--; i> -1) {
-            fillStyle(dom.childNodes[i]);
-        }
-        dom.setAttribute('style', es);
         
         
         //return returns;