Skip to content

Commit

Permalink
update readme to use jsdom.level(x, 'feature') instead of deprecate…
Browse files Browse the repository at this point in the history
…d `jsdom.dom.levelX.feature`
  • Loading branch information
tmpvar committed Feb 17, 2012
1 parent 276bf3e commit ce9501e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -139,7 +139,7 @@ If you want to spawn a document/window and specify all sorts of options this is


var jsdom = require('jsdom'),
doc = jsdom.jsdom('<html><body></body></html>', jsdom.dom.level1.core)
doc = jsdom.jsdom('<html><body></body></html>', jsdom.level(1, 'core'))

- `options` see the **Flexibility** section below

Expand Down Expand Up @@ -217,7 +217,7 @@ This feature is backed by [sizzle][] but currently causes problems with some lib

## Creating a document
var jsdom = require("jsdom"),
doc = new (jsdom.dom.level1.core.Document)();
doc = new (jsdom.level(1, 'core').Document)();
console.log(doc.nodeName);
// outputs: #document

Expand Down

0 comments on commit ce9501e

Please sign in to comment.