From: meeque Date: Fri, 25 Aug 2017 20:53:15 +0000 (+0200) Subject: Add unit test for xss in data target attribute X-Git-Tag: v4.0.0-beta.2~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9612830701211d757ff95ceccbb494fd2e7ee17e;p=thirdparty%2Fbootstrap.git Add unit test for xss in data target attribute --- diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 3b028dc100..5b265df158 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -597,4 +597,40 @@ $(function () { }) .trigger('click') }) + + QUnit.test('should not parse target as html', function (assert) { + assert.expect(1) + var done = assert.async() + + var $toggleBtn = $('