Skip to content

Commit

Permalink
Use modern HTML5 <!DOCTYPE>, as discussed in #3299
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Apr 23, 2017
1 parent a9288e4 commit 23e0054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-environment-jsdom/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JSDOMEnvironment {

constructor(config: Config): void {
// lazy require
this.document = require('jsdom').jsdom(/* markup */ undefined, {
this.document = require('jsdom').jsdom('<!DOCTYPE html>', {
url: config.testURL,
});
const global = (this.global = this.document.defaultView);
Expand Down

0 comments on commit 23e0054

Please sign in to comment.