diff options
author | songhn233 <songhn233@gmail.com> | 2021-04-14 02:35:23 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-04-19 14:56:14 +0800 |
commit | 19c3968096af2136a0a80ae013d62e99c686bdc3 (patch) | |
tree | 5bdfbd1abf7a0ba3d090a38ba5339e658f96ba53 /files/zh-cn/web/html/element/a | |
parent | 01d927ed48d9d18ccb3d10020c86673519e684d8 (diff) | |
download | translated-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.html | 2 |
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><a></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> |