diff --git a/test/fixtures/expect.js b/test/fixtures/expect.js index ca7adf52b..d717802d1 100644 --- a/test/fixtures/expect.js +++ b/test/fixtures/expect.js @@ -1021,7 +1021,8 @@ module.exports = [ "", "

<a id=\"\">", "\">", - "\">" + "\">", + "" ] }, { "title": "Tests against mXSS behavior with MathML in Chrome 77 and alike", @@ -1040,7 +1041,8 @@ module.exports = [ "

<template><style>", "

", "", - "" + "", + "" ] }, { "title": "Tests against mXSS behavior with MathML Templates in Chrome 77 and alike", @@ -1112,21 +1114,24 @@ module.exports = [ "payload": "
", "expected": [ "", - "
" + "
", + "" ] }, { "title": "Tests against nesting-based mXSS behavior 4/5", @@ -1135,13 +1140,15 @@ module.exports = [ "", "", "
", + "
" ] }, { "title": "Tests against nesting-based mXSS behavior 5/5", "payload": "\">", "expected": [ "", - "
" + "
", + "" ] }, { "title": "Tests against additonal problems regarding HTML inside MathML 1/2", @@ -1149,6 +1156,7 @@ module.exports = [ "expected": [ "", "

", + "" ] }, { "title": "Tests against additonal problems regarding HTML inside MathML 2/2", diff --git a/test/test-suite.js b/test/test-suite.js index 7b1c52f28..1f5467f8f 100644 --- a/test/test-suite.js +++ b/test/test-suite.js @@ -1487,11 +1487,18 @@ module.exports = function (DOMPurify, window, tests, xssTests) { }, { test: '', - expected: ['', ""] + expected: [ + '', + "" + ] }, { test: '', - expected: ['', ""] + expected: [ + '', + "", + "" + ] }, { test: '',