aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-05-30 09:41:05 +0200
committerJohann-S <[email protected]>2018-06-01 09:10:25 +0200
commit2d90d369bbc2bd2647620246c55cec8c4705e3d0 (patch)
treed9df023eca32b14b44443096990473d96dd4b5d1 /js/src
parente3084c3842809ca83aaaba7c8f53ea2b0ffabe0a (diff)
downloadbootstrap-2d90d369bbc2bd2647620246c55cec8c4705e3d0.tar.xz
bootstrap-2d90d369bbc2bd2647620246c55cec8c4705e3d0.zip
fix(tooltip): xss in container option
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index ed10057ed..3d4e93f2b 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -273,7 +273,7 @@ const Tooltip = (($) => {
const attachment = this._getAttachment(placement)
this.addAttachmentClass(attachment)
- const container = this.config.container === false ? document.body : $(this.config.container)
+ const container = this.config.container === false ? document.body : $(document).find(this.config.container)
$(tip).data(this.constructor.DATA_KEY, this)