                 .replace(/</g, '&lt;')
                 .replace(/>/g, '&gt;')
                 .replace(/"/g, '&quot;')
-        this
-
         if @headers
             @emit 'data', "#{indent this}#{@headers}>"
             delete @headers
         @emit 'data', "#{indent this}#{content}" if content
+        @content = content
         this
 
     up: -> null # this node has no parent

            if @closed is 'self'
                "/>"
            else if @closed
                "></#{@name}>" # FIXME children ? content ?


class Builder extends EventEmitter

        @buffer = [] # after this tag all children emitted data
        @pending = [] # no open child tag
        @closed = false
        @content = ""
        @headers = "<#{@name}#{new_attrs @attrs}"
        execute_children_scope.call this, children

