Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No commit message

  • Loading branch information...
commit f25097fe593543aa56b724548f15010d0c45b04b 1 parent 0df8ca5
@tmpvar authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -34,13 +34,13 @@ console.log(window.document);
</pre>
## Creating a window+document with html
-<pre>
-var jsdom = require("jsdom"),
- window = jsdom.createWindow("<html><head></head><body>hello world</body></html>", jsdom.defaultLevel);
-console.log(window.document.innerHTML);
-// output: '<html><head></head><body>hello world</body></html>'
-</pre>
+ var jsdom = require("jsdom"),
+ window = jsdom.createWindow("<html><head></head><body>hello world</body></html>", jsdom.defaultLevel);
+
+ console.log(window.document.innerHTML);
+ // output: '<html><head></head><body>hello world</body></html>'
+
## Creating a browser-like DOM/Window
Please sign in to comment.
Something went wrong with that request. Please try again.