File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,22 @@ predicate isLocation(Expr e) {
29
29
}
30
30
31
31
/**
32
+ * DEPRECATED: Use DOM::documentRef() instead.
32
33
* Gets a reference to the 'document' object.
33
34
*/
34
- DataFlow:: SourceNode document ( ) { result = DOM:: documentRef ( ) }
35
+ deprecated DataFlow:: SourceNode document ( ) { result = DOM:: documentRef ( ) }
35
36
36
- /** Holds if `e` could refer to the `document` object. */
37
- predicate isDocument ( Expr e ) { DOM:: documentRef ( ) .flowsToExpr ( e ) }
37
+ /**
38
+ * DEPRECATED: Use DOM::documentRef() instead.
39
+ * Holds if `e` could refer to the `document` object.
40
+ */
41
+ deprecated predicate isDocument ( Expr e ) { DOM:: documentRef ( ) .flowsToExpr ( e ) }
38
42
39
- /** Holds if `e` could refer to the document URL. */
40
- predicate isDocumentURL ( Expr e ) { e .flow ( ) = DOM:: locationSource ( ) }
43
+ /**
44
+ * DEPRECATED: Use DOM::locationSource() instead.
45
+ * Holds if `e` could refer to the document URL.
46
+ */
47
+ deprecated predicate isDocumentURL ( Expr e ) { e .flow ( ) = DOM:: locationSource ( ) }
41
48
42
49
/**
43
50
* DEPRECATED. In most cases, a sanitizer based on this predicate can be removed, as
You can’t perform that action at this time.
0 commit comments