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

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Daniel Santos
2022-05-03 11:38:32 -05:00
committed by GitHub
parent 4cd6dcc4d0
commit 880e3e1885

View File

@@ -236,7 +236,8 @@ module XssThroughDom {
}
/**
* A source for text from the DOM from a Selection object toString method call
* A source for text from the DOM from calling `toString()` on a `Selection` object.
* The `toString()` method returns the currently selected text in the DOM.
* https://developer.mozilla.org/en-US/docs/Web/API/Selection
*/
class SelectionSource extends Source {