Skip to content

Commit 880e3e1

Browse files
bananabrerik-krogh
andauthored
Update javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 4cd6dcc commit 880e3e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ module XssThroughDom {
236236
}
237237

238238
/**
239-
* A source for text from the DOM from a Selection object toString method call
239+
* A source for text from the DOM from calling `toString()` on a `Selection` object.
240+
* The `toString()` method returns the currently selected text in the DOM.
240241
* https://developer.mozilla.org/en-US/docs/Web/API/Selection
241242
*/
242243
class SelectionSource extends Source {

0 commit comments

Comments
 (0)