Skip to content

Commit 18e9c05

Browse files
Potential fix for code scanning alert no. 44: DOM text reinterpreted as HTML (#1668)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 20391a4 commit 18e9c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcefiles/modern/plugins/bootstrap/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ if (typeof jQuery === 'undefined') {
773773
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
774774
}
775775

776-
var $parent = selector && $(selector)
776+
var $parent = selector && $(document).find(selector)
777777

778778
return $parent && $parent.length ? $parent : $this.parent()
779779
}

0 commit comments

Comments
 (0)