Skip to content

Commit

Permalink
fix(scrollspy): xss in target option
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed May 30, 2018
1 parent 3ba1863 commit 3229efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3229efc

Please sign in to comment.