mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01: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:
parent
3063d74b86
commit
b3aa3958da
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user