         @parent = @builder
         @closed = no
         @writable = true
-        @hidden = no
+        @hidden =  no
         @isready = no
         @isempty = yes
+        @isselfclosing = no
         @content = ""
         @children children, opts
         @$tag = sync_tag


    end: () =>
        if not @closed
            @closed = 'approving'
            close_tag = =>
                if @isempty
                    @closed = 'self'
                else
                    @closed = yes
                @emit 'close', this
                @writable = false
                set_ready = =>


    toString: () =>
        "<#{@name}#{new_attrs @attrs}" +
            if @isempty
                "/>"
            else if @closed
                ">#{@content}</#{@name}>"
