diff --git a/test/jsdom/index.js b/test/jsdom/index.js index 4b5c8dbd85..581f597fa4 100644 --- a/test/jsdom/index.js +++ b/test/jsdom/index.js @@ -865,10 +865,10 @@ exports.tests = { parsing_and_serializing_unknown_entities: function (test) { var html = '&nowayjose;☺ lah; q;'; var document = jsdom.jsdom(html); - test.strictEqual(document.body.firstChild.nodeValue, "&nowayjose;☺ lah; q;", - "Unknown and unparsable entities should be left in the decoded text"); - test.strictEqual(document.body.innerHTML, "&nowayjose;☺&#xblah;&#9q;", - "Unknown and unparsable entities should be reserialized as literal text"); + test.strictEqual(document.body.firstChild.nodeValue, "&nowayjose;☺ lah; q;", + "Unknown and unparsable entities should be handled like a browser would"); + test.strictEqual(document.body.innerHTML, "&nowayjose;☺ lah; q;", + "Unknown and unparsable entities should be handled like a browser would"); test.done(); },