 jsdom = require("jsdom")
+html = jsdom.dom.level3.html
 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 typeof selector == 'object'
        return selector
      # Try more specific selector first.
      if field = @querySelector(selector)

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