From 6e9fe98036090a37cc6247b873845505e5b512fb Mon Sep 17 00:00:00 2001 From: Tanner Dolby Date: Tue, 22 Feb 2022 01:49:36 -0800 Subject: Removes empty
or

elements from pages (#3093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Removes all empty paragraph elements * Removes all empty div elements * Preserve empty div in code snippet * Preserve empty elements inside code snippets * Remove fr files which were converted into markdown * Web/CSS/transform-function/scaleX()/index.html The file is already renamed to index.md。 * remove not needed file * Resolve remaining conflict Co-authored-by: julieng Co-authored-by: Masahiro FUJIMOTO --- files/zh-cn/web/api/document/adoptnode/index.html | 4 ++-- files/zh-cn/web/api/document/cookie/index.html | 2 +- files/zh-cn/web/api/document/querycommandenabled/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/api/document') diff --git a/files/zh-cn/web/api/document/adoptnode/index.html b/files/zh-cn/web/api/document/adoptnode/index.html index 74d824966f..c7cc3d2e5a 100644 --- a/files/zh-cn/web/api/document/adoptnode/index.html +++ b/files/zh-cn/web/api/document/adoptnode/index.html @@ -79,11 +79,11 @@ document.getElementById("move").onclick = getEle -

将外部文档的节点插入当前文档之前,你必须使用 document.importNode() 从外部文档导入源节点,或者使用 document.adoptNode()导入源节点, +

将外部文档的节点插入当前文档之前,你必须使用 document.importNode() 从外部文档导入源节点,或者使用 document.adoptNode()导入源节点, 想要了解更多的 Node.ownerDocument 问题,请参考 W3C DOM FAQ.

即使你不执行导入动作,就执行插入外部文档中的节点.Firefox目前也不会报错(如果严格按标准执行,很多已有的网站都无法正常运行). - 我们鼓励开发者严格按标准修改自己已有的不符合上述标准的代码.

+ 我们鼓励开发者严格按标准修改自己已有的不符合上述标准的代码.

规范

diff --git a/files/zh-cn/web/api/document/cookie/index.html b/files/zh-cn/web/api/document/cookie/index.html index bf09d2d80d..698ff4e39a 100644 --- a/files/zh-cn/web/api/document/cookie/index.html +++ b/files/zh-cn/web/api/document/cookie/index.html @@ -8,7 +8,7 @@ translation_of: Web/API/Document/cookie ---
{{APIRef("DOM")}}
-
+

获取并设置与当前文档相关联的 cookie。可以把它当成一个 getter and setter

diff --git a/files/zh-cn/web/api/document/querycommandenabled/index.html b/files/zh-cn/web/api/document/querycommandenabled/index.html index 4dd87d963d..db39054dba 100644 --- a/files/zh-cn/web/api/document/querycommandenabled/index.html +++ b/files/zh-cn/web/api/document/querycommandenabled/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/Document/queryCommandEnabled

注意

该方法在部分浏览器返回的结果是不可预料的。因此,建议使用execCommand的返回值直接判断,或通过其它方式嗅探,而非使用该方法。
-
+

Document.queryCommandEnabled() 方法可查询浏览器中指定的编辑指令是否可用。

-- cgit v1.2.3-54-g00ecf