         @parent = @builder
         @closed = false
         @writable = true
+        @hidden = no
         @isempty = yes
         @content = ""
         @children children, opts


    write: (content, {escape} = {}) =>
        content = safe(content) if escape
        if @isempty
            @emit 'data', prettify this, "<#{@name}#{new_attrs @attrs}>"
            @isempty = no

{ EventEmitter } = require 'events'
{ deep_merge, prettify, new_attrs, safe } = require './util'
EVENTS = ['add', 'attr', 'attr:remove', 'text', 'raw', 'show', 'hide', 'remove',
          'close']


parse_args = (name, attrs, children, opts) ->
