File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
javascript/ql/test/query-tests/DOM/TargetBlank Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 2
2
| tst.html:24:1:24:48 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
3
3
| tst.html:25:1:25:54 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
4
4
| tst.html:30:1:30:61 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
5
- | tst.js:17 :1:17 :43 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
6
- | tst.js:18 :1:18 :58 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
7
- | tst.js:19 :1:19 :51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
8
- | tst.js:31 :12:31 :39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. |
9
- | tst.js:39 :12:39 :20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. |
5
+ | tst.js:16 :1:16 :43 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
6
+ | tst.js:17 :1:17 :58 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
7
+ | tst.js:18 :1:18 :51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
8
+ | tst.js:29 :12:29 :39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. |
9
+ | tst.js:36 :12:36 :20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. |
Original file line number Diff line number Diff line change 1
1
function foo ( ) { return "noopener noreferrer" ; }
2
2
var o = { rel : "noopener noreferrer " } ;
3
3
4
-
5
4
< a href = "http://example.com" target = "_blank" rel = "noopener noreferrer" > Example</ a > ;
6
5
< a href = "http://example.com" target = "_blank" rel = "noreferrer" > Example</ a > ;
7
6
< a href = "http://example.com" target = "_blank" rel = "noopener" > Example</ a > ;
@@ -23,15 +22,13 @@ function f() {
23
22
var a1 = $ ( "<a/>" , { href : "http://example.com" } ) ;
24
23
a1 . attr ( "target" , "_blank" ) ;
25
24
26
-
27
25
var a2 = $ ( "<a/>" , { href : "http://example.com" } ) ;
28
26
a2 . attr ( "target" , "_blank" ) ;
29
27
a2 . attr ( computedName ( ) , "noopener" ) ;
30
28
31
29
var a3 = $ ( "<a/>" , { href : "{{X}}" } ) ; // $ Alert
32
30
a3 . attr ( "target" , "_blank" ) ;
33
31
34
-
35
32
var a4 = $ ( "<a/>" ) ;
36
33
a4 [ f ( ) ] = g ( ) ;
37
34
a4 . attr ( "target" , "_blank" ) ;
You can’t perform that action at this time.
0 commit comments