aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/a
diff options
context:
space:
mode:
authorsonghn233 <songhn233@gmail.com>2021-04-14 02:35:23 +0800
committerIrvin <irvinfly@gmail.com>2021-04-19 14:56:14 +0800
commit19c3968096af2136a0a80ae013d62e99c686bdc3 (patch)
tree5bdfbd1abf7a0ba3d090a38ba5339e658f96ba53 /files/zh-cn/web/html/element/a
parent01d927ed48d9d18ccb3d10020c86673519e684d8 (diff)
downloadtranslated-content-19c3968096af2136a0a80ae013d62e99c686bdc3.tar.gz
translated-content-19c3968096af2136a0a80ae013d62e99c686bdc3.tar.bz2
translated-content-19c3968096af2136a0a80ae013d62e99c686bdc3.zip
update: _blank implicit noopener
Diffstat (limited to 'files/zh-cn/web/html/element/a')
-rw-r--r--files/zh-cn/web/html/element/a/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/html/element/a/index.html b/files/zh-cn/web/html/element/a/index.html
index e48a805692..73cc51ac21 100644
--- a/files/zh-cn/web/html/element/a/index.html
+++ b/files/zh-cn/web/html/element/a/index.html
@@ -104,7 +104,7 @@ translation_of: Web/HTML/Element/a
</dd>
<dd>
<div class="note">
- <p><strong>注意:</strong>使用target时,考虑添加 rel="noopener noreferrer" 以防止针对 window.opener API 的恶意行为。</p>
+ <p><strong>注意:</strong>在 <code>&lt;a&gt;</code> 元素上使用 <code>target="_blank"</code> 隐式提供了与使用 <code><a href="/zh-CN/docs/Web/HTML/Link_types/noopener">rel="noopener"</a></code> 相同的 <code>rel</code> 行为,即不会设置 <code>window.opener</code>。
</div>
</dd>
<dd>