diff options
| author | Johann-S <[email protected]> | 2018-05-30 09:41:05 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2018-06-01 09:10:25 +0200 |
| commit | 2d90d369bbc2bd2647620246c55cec8c4705e3d0 (patch) | |
| tree | d9df023eca32b14b44443096990473d96dd4b5d1 /js/src | |
| parent | e3084c3842809ca83aaaba7c8f53ea2b0ffabe0a (diff) | |
| download | bootstrap-2d90d369bbc2bd2647620246c55cec8c4705e3d0.tar.xz bootstrap-2d90d369bbc2bd2647620246c55cec8c4705e3d0.zip | |
fix(tooltip): xss in container option
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/tooltip.js | 2 |
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) |
