Skip to content

Commit

Permalink
[zh-cn]: update the translation of document embeds and `featurePoli…
Browse files Browse the repository at this point in the history
…cy` properties (#20374)

Co-authored-by: A1lo <[email protected]>
  • Loading branch information
T34-active and yin1999 authored May 15, 2024
1 parent 5fa2112 commit d3362c2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
18 changes: 7 additions & 11 deletions files/zh-cn/web/api/document/embeds/index.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
---
title: document.embeds
title: Document:embeds 属性
slug: Web/API/Document/embeds
l10n:
sourceCommit: 41a8b9c9832359d445d136b6d7a8a28737badc6b
---

{{ ApiRef() }}
{{ApiRef}}

{{domxref("Document")}}接口的只读属性`embeds` 返回当前文档内的\<embed>**HTML** {{htmlelement("object")}}元素列表
{{domxref("Document")}} 接口的 **`embeds`** 只读属性返回当前文档中嵌入的 {{htmlelement("embed")}} 元素的列表。

## 语法
##

```plain
nodeList = document.embeds
```

###

一个 {{domxref("HTMLCollection")}}类型的值
{{domxref("HTMLCollection")}}。

## 规范

Expand Down
22 changes: 22 additions & 0 deletions files/zh-cn/web/api/document/featurepolicy/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Document:featurePolicy 属性
slug: Web/API/Document/featurePolicy
l10n:
sourceCommit: 41a8b9c9832359d445d136b6d7a8a28737badc6b
---

{{APIRef("Feature Policy")}}{{SeeCompatTable}}

{{domxref("Document")}} 接口的 **`featurePolicy`** 只读属性返回 {{domxref("FeaturePolicy")}} 接口,该接口提供了用于检查应用于特定文档的[权限策略](/zh-CN/docs/Web/HTTP/Permissions_Policy)的简单 API。

##

{{domxref("FeaturePolicy")}} 对象,可用于检查应用于文档的权限策略设置。

## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

0 comments on commit d3362c2

Please sign in to comment.