         @builder = opts.builder #or new Builder # inheritence
         @buffer = [] # after this tag all children emitted data
         @pending = [] # no open child tag
+        @parent = @builder
         @closed = false
         @writable = true
         @isempty = yes

        @emit 'data', prettify this, "#{content}" if content
        true

    up: () -> @builder # this node has no parent

    end: () =>
        if not @closed or @closed is 'pending'

    opts.builder = @builder

    @pending.push tag = new @builder.Tag name, attrs, null, opts
    tag.parent = this

    tag.on 'data', events.data = (data) =>
        if @pending[0] is tag
