diff --git a/src/lib/dom-api.html b/src/lib/dom-api.html index c5401d5fc8..15bbbde5d1 100644 --- a/src/lib/dom-api.html +++ b/src/lib/dom-api.html @@ -927,8 +927,10 @@ // is populated. if (!node._lightChildren) { var c$ = []; - for (var a=node.firstChild; a = a && a.nextSibling;) { - c$.push(a); + var n = node.firstChild; + while (n) { + c$.push(n); + n = n.nextSibling; } for (var i=0, l=c$.length, child; (i