Commit 003fcccc authored by Jacob Thornton's avatar Jacob Thornton
Browse files

change tooltip/popover html default to false for xss safety net

parent ebf94c53
Showing with 6 additions and 5 deletions
+6 -5
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
, trigger: 'hover' , trigger: 'hover'
, title: '' , title: ''
, delay: 0 , delay: 0
, html: true , html: false
} }
}(window.jQuery); }(window.jQuery);
...@@ -1231,7 +1231,7 @@ ...@@ -1231,7 +1231,7 @@
, trigger: 'hover' , trigger: 'hover'
, title: '' , title: ''
, delay: 0 , delay: 0
, html: true , html: false
} }
}(window.jQuery); }(window.jQuery);
......
This diff is collapsed.
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
, trigger: 'hover' , trigger: 'hover'
, title: '' , title: ''
, delay: 0 , delay: 0
, html: true , html: false
} }
}(window.jQuery); }(window.jQuery);
...@@ -37,10 +37,11 @@ $(function () { ...@@ -37,10 +37,11 @@ $(function () {
tooltip.tooltip('hide') tooltip.tooltip('hide')
}) })
test("should always allow html entities", function () { test("should allow html entities", function () {
$.support.transition = false $.support.transition = false
var tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"></a>') var tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"></a>')
.appendTo('#qunit-fixture') .appendTo('#qunit-fixture')
.tooltip({html: true})
.tooltip('show') .tooltip('show')
ok($('.tooltip b').length, 'b tag was inserted') ok($('.tooltip b').length, 'b tag was inserted')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment