We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d69c5 commit e7eb26fCopy full SHA for e7eb26f
test/jsdom/parsing.js
@@ -206,3 +206,18 @@ exports["Handle missing <body> tag correctly (GH-389)"] = function (t) {
206
}
207
});
208
};
209
+
210
+exports["Handle more non-standard markup (GH-88)"] = function (t) {
211
+ var doc;
212
213
+ doc = jsdom("<html><body></body></html>");
214
+ t.strictEqual(doc.body.innerHTML, "");
215
216
+ doc = jsdom("<body></body>");
217
218
219
+ doc = jsdom("gavin!");
220
+ t.strictEqual(doc.body.innerHTML, "gavin!");
221
222
+ t.done();
223
+};
0 commit comments