Skip to content

Commit 1670cc8

Browse files
committed
Test for handling of non-strict html entities
Fixes jsdom#821.
1 parent ff0f2e9 commit 1670cc8

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
@@ -144,3 +144,11 @@ exports["lower-cases tags in outerHTML and innerHTML"] = function (t) {
144144

145145
t.done();
146146
};
147+
148+
exports["Non-strict HTML entities (GH-821)"] = function (t) {
149+
var doc = jsdom("<a>&#x61</a>");
150+
151+
t.strictEqual(doc.getElementsByTagName("a")[0].textContent, "a");
152+
153+
t.done();
154+
};

0 commit comments

Comments
 (0)