aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-05-30 09:50:13 +0200
committerJohann-S <[email protected]>2018-06-01 09:10:25 +0200
commitcc61edfa8af7b5ec9d4888c59bf94377e499b78b (patch)
tree826959307ff80ee91cfcf09509c7146195bab1bf /js
parent149096016f70fd815540d62c0989fd99cdc809e0 (diff)
downloadbootstrap-cc61edfa8af7b5ec9d4888c59bf94377e499b78b.tar.xz
bootstrap-cc61edfa8af7b5ec9d4888c59bf94377e499b78b.zip
fix(scrollspy): xss in target option
Diffstat (limited to 'js')
-rw-r--r--js/src/scrollspy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js
index 091b320bd..90905b05d 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -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) => {