1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 18:14:17 +02:00

fix(collapse): xss in parent option

This commit is contained in:
Johann-S
2018-05-30 09:46:50 +02:00
parent 2d90d369bb
commit 149096016f
2 changed files with 15 additions and 1 deletions

View File

@@ -289,7 +289,7 @@ const Collapse = (($) => {
parent = this._config.parent[0]
}
} else {
parent = $(this._config.parent)[0]
parent = document.querySelector(this._config.parent)
}
const selector =