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