mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-25 14:30:46 +02:00
Backport #32045
tests: fix sanitizer test. The test template does not include a `script` tag so the test always returned true.
This commit is contained in:
@@ -1170,7 +1170,7 @@ $(function () {
|
||||
})
|
||||
|
||||
var tooltip = $trigger.data('bs.tooltip')
|
||||
assert.strictEqual(tooltip.config.template.indexOf('script'), -1)
|
||||
assert.strictEqual(tooltip.config.template.indexOf('href="javascript:alert(7)"'), -1)
|
||||
})
|
||||
|
||||
QUnit.test('should allow custom sanitization rules', function (assert) {
|
||||
|
Reference in New Issue
Block a user