Skip to content

Commit aa46500

Browse files
committed
Test single <html> tag
Fixes jsdom#827.
1 parent faab47c commit aa46500

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/jsdom/parsing.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,11 @@ exports["Added < or > generate strange HTML (GH-826)"] = function (t) {
160160

161161
t.done();
162162
};
163+
164+
exports["Parsing of single <html> tag (GH-827)"] = function (t) {
165+
var doc = jsdom("<html>");
166+
167+
t.strictEqual(doc.documentElement.innerHTML, "<head></head><body></body>");
168+
169+
t.done();
170+
};

0 commit comments

Comments
 (0)