projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25029b5
)
inliner.js
author
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 06:17:20 +0000
(14:17 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 Nov 2015 06:17:20 +0000
(14:17 +0800)
inliner.js
patch
|
blob
|
history
diff --git
a/inliner.js
b/inliner.js
index
63f2022
..
bfca239
100644
(file)
--- a/
inliner.js
+++ b/
inliner.js
@@
-23,9
+23,16
@@
return;
}
var cn = [];
+
+ if (dom.childNodes.length > 50) {
+ console.log(dom);
+ throw "too many child nodes?");
+ }
for (var i = 0;i < dom.childNodes.length;i++) {
cn.push(dom.childNodes[i]);
- }
+ }
+
+
for (var i = 0;i < cn.length;i++) {
console.log( i + ':'+ cn[i].nodeName);
cn.push(cn[i]);