JS: Remove blank lines

This commit is contained in:
Asger F
2025-03-10 13:59:24 +01:00
parent f7532c09e6
commit b9dd594d69
2 changed files with 5 additions and 8 deletions

View File

@@ -2,8 +2,8 @@
| tst.html:24:1:24:48 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
| tst.html:25:1:25:54 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
| tst.html:30:1:30:61 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:17:1:17:43 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:18:1:18:58 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:19:1:19:51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:31:12:31:39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. |
| tst.js:39:12:39:20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. |
| tst.js:16:1:16:43 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:17:1:17:58 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:18:1:18:51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:29:12:29:39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. |
| tst.js:36:12:36:20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. |

View File

@@ -1,7 +1,6 @@
function foo() { return "noopener noreferrer"; }
var o = { rel: "noopener noreferrer "};
<a href="http://example.com" target="_blank" rel="noopener noreferrer">Example</a>;
<a href="http://example.com" target="_blank" rel="noreferrer">Example</a>;
<a href="http://example.com" target="_blank" rel="noopener">Example</a>;
@@ -23,7 +22,6 @@ function f() {
var a1 = $("<a/>", { href: "http://example.com" });
a1.attr("target", "_blank");
var a2 = $("<a/>", { href: "http://example.com" });
a2.attr("target", "_blank");
a2.attr(computedName(), "noopener");
@@ -31,7 +29,6 @@ function f() {
var a3 = $("<a/>", { href: "{{X}}" }); // $ Alert
a3.attr("target", "_blank");
var a4 = $("<a/>");
a4[f()] = g();
a4.attr("target", "_blank");