     @helper.forEachChild parent, (child) =>
       nodeType = child.nodeType
       if nodeType is 1 # element
-        this.element child, output
+        @element child, output
       else if nodeType is 3 # text
-        this.text child, output
+        @text child, output
       else if nodeType is 8 # comment
-        this.comment child, output
+        @comment child, output
       else
         output.writeln '*** nodeType: ' + nodeType
     output.leave()
       
   text: (node, output) ->
+    console.log "text: #{node.data}"
     node.normalize()
     @helper.writeText node, output
   

    condition = node.data.match /\s*\[(if\s+[^\]]+)\]/
    if condition
      output.writeln '/' + condition[1]
      this.conditional node, output
    else
      output.writeln '//' + node.data
      

      output.writeln tagHead + tagAttr + ' ' + tagText
    else
      output.writeln tagHead + tagAttr
      @children node, output
    
    #if tagName is 'SCRIPT'
    
