Browse Source

Add target=_blank test

Alexandre Dieulot 6 years ago
parent
commit
e81615ca9d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/app.js

+ 1 - 0
test/app.js

@@ -60,6 +60,7 @@ async function requestListener(req, res) {
       }
     }
 
+    content += `<a href="/${page}?${Math.random()}" target="_blank"><span>Opens in a new tab</span></a>`
     content += `<a href="/${page}?${Math.random()}#anchor"><span>Other page anchor</span></a>`
     content += `<a href="${req.url}#anchor" id="anchor"><span>Same-page anchor</span></a>`
     content += `<a href="/${page}?${Math.random()}" data-no-instant><span>Manually blacklisted link</span></a>`