   # Returns a string
   text: (selector, context)->
     if @document.documentElement
-      return @queryAll(selector, context).map((e)-> e.textContent).join("").trim().replace(/\s+/g, " ")
+      return @queryAll(selector || "html", context)
+        .map((e)-> e.textContent)
+        .join("").trim().replace(/\s+/g, " ")
     else if @source
       return @source.toString()
     else

  features: "scripts no-css"

  # Which parser to use (HTML5 by default). For example:
  #   Browser.default.htmlParser = require("html5").HTML5 // HTML5, forgiving
  #   Browser.default.htmlParser = require("htmlparser")  // Faster, stricter
  htmlParser: HTML5


EventLoop         = require("./eventloop")
{ format }        = require("util")
File              = require("fs")
HTML5             = require("html5")
Interact          = require("./interact")
HTML              = require("jsdom").dom.level3.html
Mime              = require("mime")
