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 e7eb26f commit 0d9fc6eCopy full SHA for 0d9fc6e
test/jsdom/parsing.js
@@ -221,3 +221,24 @@ exports["Handle more non-standard markup (GH-88)"] = function (t) {
221
222
t.done();
223
};
224
+
225
+exports[".innerHTML with < character (GH-652)"] = function (t) {
226
+ jsdom.env({
227
+ html: "<html>",
228
+ done: function (errs, window) {
229
+ t.ifError(errs);
230
231
+ var doc = window.document;
232
233
+ var script = doc.createElement("script");
234
+ script.innerHTML = "5 < 3";
235
+ t.strictEqual(script.innerHTML, "5 < 3");
236
237
+ var p = doc.createElement("p");
238
+ p.innerHTML = "5 < 3";
239
+ t.strictEqual(p.innerHTML, "5 < 3");
240
241
+ t.done();
242
+ }
243
+ });
244
+};
0 commit comments