lass="hl str">        }</span>
<span class="hl str">      }</span>
<span class="hl str">    };</span>
<span class="hl str"></span>
<span class="hl str">    Writer.prototype.forEachChild = function(parent, cb) {</span>
<span class="hl str">      var child, _results;</span>
<span class="hl str">      if (parent) {</span>
<span class="hl str">        child = parent.firstChild;</span>
<span class="hl str">        _results = [];</span>
<span class="hl str">        while (child) {</span>
<span class="hl str">    