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 Jun 1, 2018
1 parent 1490960 commit cc61edf
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 cc61edf

Please sign in to comment.