Skip to content

Commit 1d297e6

Browse files
Sebmasterdomenic
authored andcommitted
Test handling of < and > in <pre> tag
Fixes jsdom#755.
1 parent 4e1b57f commit 1d297e6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/jsdom/parsing.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,15 @@ exports["whitespace after <!DOCTYPE> (GH-160)"] = function (t) {
251251

252252
t.done();
253253
};
254+
255+
exports["parsing of pre tag with < and > characters (GH-755)"] = function (t) {
256+
var doc = jsdom("<pre>[task.h:277] - RunnableMethod<DOMStorageDispatcherHost,void " +
257+
"( DOMStorageDispatcherHost::*)(DOMStorageType,IPC::Message *),Tuple2<DOMStorageType,IPC::Message *>>" +
258+
"::Run()</pre>");
259+
260+
t.strictEqual(doc.body.innerHTML, "<pre>[task.h:277] - RunnableMethod<domstoragedispatcherhost,void " +
261+
"(=\"\" domstoragedispatcherhost::*)(domstoragetype,ipc::message=\"\" *),tuple2<domstoragetype,ipc::message=\"\" *=\"\">" +
262+
"&gt;::Run()</domstoragedispatcherhost,void></pre>");
263+
264+
t.done();
265+
};

0 commit comments

Comments
 (0)