           parent = stack.pop()
 
         chars: (text) ->
+          return if (typeof text != 'string' || text.length == 0)
           parent.appendChild(new TextNode(text))
 
         comment: (text) ->

    @attributes = []
    @classList = new ClassList()

    @__defineSetter__ 'innerHTML', (html) =>
      stack = []
      parent = @
      HtmlParser.HTMLParser html,

HtmlParser = require './htmlparser'
JadeRt = require '../lib/runtime'
Jade = require '../lib/jade'
Util = require 'util'

class Document
  createElement: (tag) ->
