Skip to content

Commit f9def81

Browse files
committed
update jsdom URL
1 parent b8931ce commit f9def81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ See the <code>Contrib/PhantomJS/HTMLCS_Run.js</code> file for more information.
8484

8585
HTML_CodeSniffer requires a dom to run, however, it is possible to run it entirely
8686
server side without a headless browser using Node on arbitrary fragments of HTML using
87-
an environment wrapper like [JSDom](https://github.com/tmpvar/jsdom).
87+
an environment wrapper like [JSDom](https://github.com/jsdom/jsdom).
8888

8989
An example node script:
9090
```javascript
9191
var jsdom = require('jsdom');
9292
var { JSDOM } = jsdom;
9393
var fs = require('fs');
9494

95-
var htmlSniffer = fs.readFileSync('./build/HTMLCS.js', 'utf-8');
95+
var HTMLCS = fs.readFileSync('./build/HTMLCS.js', 'utf-8');
9696
var vConsole = new jsdom.VirtualConsole();
9797

9898
// Forward messages to the console.
@@ -105,7 +105,7 @@ var dom = new JSDOM('<img src="test.png" />', {
105105
virtualConsole: vConsole
106106
});
107107

108-
dom.window.eval(htmlSniffer);
108+
dom.window.eval(HTMLCS);
109109
dom.window.HTMLCS_RUNNER.run('WCAG2AA');
110110
```
111111

0 commit comments

Comments
 (0)