File tree Expand file tree Collapse file tree
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,15 +29,22 @@ predicate isLocation(Expr e) {
2929}
3030
3131/**
32+ * DEPRECATED: Use DOM::documentRef() instead.
3233 * Gets a reference to the 'document' object.
3334 */
34- DataFlow:: SourceNode document ( ) { result = DOM:: documentRef ( ) }
35+ deprecated DataFlow:: SourceNode document ( ) { result = DOM:: documentRef ( ) }
3536
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 ) }
3842
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 ( ) }
4148
4249/**
4350 * 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