     #
     # Open new browser window.
     this.open = ->
-      window = jsdom.createWindow(jsdom.dom.level3.html)
+      window = jsdom.createWindow(html)
       window.__defineGetter__ "browser", => this
       cookies.extend window
       storage.extend window

jsdom = require("jsdom")
vm = process.binding("evals")
require "./jsdom_patches"
require "./forms"

    # leading/trailing spaces).
    this.field = (selector)->
      # If the field has already been queried, return itself
      if selector instanceof html.Element
        return selector
      # Try more specific selector first.
      if field = @querySelector(selector)
