mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-20 12:21:35 +02:00
change tooltip/popover html default to false for xss safety net
This commit is contained in:
3
js/tests/unit/bootstrap-tooltip.js
vendored
3
js/tests/unit/bootstrap-tooltip.js
vendored
@@ -37,10 +37,11 @@ $(function () {
|
||||
tooltip.tooltip('hide')
|
||||
})
|
||||
|
||||
test("should always allow html entities", function () {
|
||||
test("should allow html entities", function () {
|
||||
$.support.transition = false
|
||||
var tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"></a>')
|
||||
.appendTo('#qunit-fixture')
|
||||
.tooltip({html: true})
|
||||
.tooltip('show')
|
||||
|
||||
ok($('.tooltip b').length, 'b tag was inserted')
|
||||
|
Reference in New Issue
Block a user