         parent = stack[stack.length - 1]
         parent.children ?= []
         parent.children.push(result)
-      # closed a tag. "name" is tag name
       return
-
-
 
   write: (text) ->
     @parser.write(text)
-    
+  
+  # Supported events:
+  #
+  # * "command"
+  #
   on: (event, cb) ->
     @events.on event, cb
     

    stack = []
    @parser = sax.parser(strict, options)
    
    # opencdata, cdata, closecdata

    @parser.onerror = (e) ->
      # an error happened.
      return

{EventEmitter} = require 'events'
sax = require 'sax'

module.exports = 
class Parser
