0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

fix(scrollspy): xss in target option

This commit is contained in:
Johann-S 2018-05-30 09:50:13 +02:00
parent 149096016f
commit cc61edfa8a

View File

@ -115,7 +115,7 @@ const ScrollSpy = (($) => {
this._scrollHeight = this._getScrollHeight()
const targets = $.makeArray($(this._selector))
const targets = $.makeArray(document.querySelectorAll(this._selector))
targets
.map((element) => {