浏览代码

Add target=_blank test

Alexandre Dieulot 6 年之前
父节点
当前提交
e81615ca9d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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>`