aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/security
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-02 20:22:51 +0900
committerIrvin <irvinfly@gmail.com>2022-03-04 01:03:17 +0800
commit9a110dee28ae2ef12ee014b98fda6bae6ee48edb (patch)
tree6525763f4313d7d8f42aefa699765f61ee1c63df /files/zh-cn/web/security
parenteeddb651b6e8deb8ecabc2bc5bc28c8ead25cca5 (diff)
downloadtranslated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.gz
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.bz2
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.zip
Migrate to Compat macro (zh-cn)
Diffstat (limited to 'files/zh-cn/web/security')
-rw-r--r--files/zh-cn/web/security/subresource_integrity/index.html68
1 files changed, 1 insertions, 67 deletions
diff --git a/files/zh-cn/web/security/subresource_integrity/index.html b/files/zh-cn/web/security/subresource_integrity/index.html
index 7a6d4b4756..825d29d9a8 100644
--- a/files/zh-cn/web/security/subresource_integrity/index.html
+++ b/files/zh-cn/web/security/subresource_integrity/index.html
@@ -121,73 +121,7 @@ original_slug: Web/Security/子资源完整性
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>The integrity attribute for <code>&lt;script&gt;</code> and <code>&lt;link&gt;</code></td>
- <td>{{ CompatChrome("45.0") }}</td>
- <td>{{ CompatGeckoDesktop("43") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("32")}}</td>
- <td>{{CompatNo}} [1]</td>
- </tr>
- <tr>
- <td>The CSP {{CSP("require-sri-for")}} directive</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoDesktop("49") }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>The integrity attribute for <code>&lt;script&gt;</code> and <code>&lt;link&gt;</code></td>
- <td>{{ CompatChrome("45.0") }}</td>
- <td>{{CompatGeckoMobile("43")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}} [1]</td>
- </tr>
- <tr>
- <td>The CSP {{CSP("require-sri-for")}} directive</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("49")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] {{WebKitBug(148363)}}</p>
-
-<p>[2] 位于 <code>security.csp.experimentalEnabled</code> 之后的是: config preference。</p>
+{{Compat("html.elements.script.integrity")}}
<h2 id="相关资料">相关资料</h2>