mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
fix(tooltip): xss in container option
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user