Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove {{obsolete_inline}} macros from l10n-zh #6803

Merged
merged 1 commit into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions files/zh-cn/web/api/attr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ <h2 id="废弃的属性和方法">废弃的属性和方法</h2>
<dd>
<p>当前该属性总是返回 <code>NULL</code></p>
</dd>
<dt><code>childNodes</code> {{obsolete_inline(14)}}</dt>
<dt><code>childNodes</code> {{Deprecated_Inline}}</dt>
<dd>当前该属性总是返回一个空的 {{domxref("NodeList")}}.</dd>
<dt><code>firstChild</code> {{obsolete_inline(14)}}</dt>
<dt><code>firstChild</code> {{Deprecated_Inline}}</dt>
<dd><code>当前该属性总是返回 NULL</code></dd>
<dt><code>isId</code> {{readOnlyInline}}</dt>
<dd>表明该属性是否一个“ID 属性”。“ID 属性”的值在整个 DOM 文档中应当是唯一。在 HTML DOM 文档中属性“id”是一个 ID 属性,也是唯一一个 ID 属性;但是在 XML 文档中可以定义其他 ID 属性。一个属性是否是唯一的,通常由{{Glossary("DTD")}}或其他文档模式描述文件决定。</dd>
Expand All @@ -86,7 +86,7 @@ <h2 id="废弃的属性和方法">废弃的属性和方法</h2>
<dd><code>当前该属性总是返回 NULL</code></dd>
<dt><code>previousSibling</code></dt>
<dd><code>当前该属性总是返回 NULL</code></dd>
<dt><code>schemaTypeInfo</code> {{obsolete_inline}} {{readOnlyInline}}</dt>
<dt><code>schemaTypeInfo</code> {{Deprecated_Inline}} {{readOnlyInline}}</dt>
<dd>当前属性的类型信息。然而当加载完文档完或调用{{domxref("Document.normalizeDocument")}}后,这个被认定为绝对正确的包含在节点内的类型信息,会因为节点的移动而变得不可信。</dd>
<dt><code>specified</code></dt>
<dd><code>当前该属性总是返回 true</code></dd>
Expand All @@ -97,7 +97,7 @@ <h2 id="废弃的属性和方法">废弃的属性和方法</h2>
<p>这些方法已经被废弃:</p>

<dl>
<dt><code>appendChild()</code>{{obsolete_inline(14)}}</dt>
<dt><code>appendChild()</code> {{Deprecated_Inline}}</dt>
<dd>通过编辑{{domxref("Attr.value")}}属性来实现相同的效果</dd>
<dt><code>cloneNode()</code></dt>
<dd>这个方法本不应当在这里被使用,所以无须担心其演变</dd>
Expand All @@ -109,7 +109,7 @@ <h2 id="废弃的属性和方法">废弃的属性和方法</h2>
<dd>使用{{domxref("Element.getAttribute()")}}来代替</dd>
<dt><code>getAttributeNodeNS()</code></dt>
<dd>使用{{domxref("Element.getAttributeNS()")}}来代替</dd>
<dt><code>hasAttributes() </code>{{obsolete_inline("21.0")}}</dt>
<dt><code>hasAttributes() </code> {{Deprecated_Inline}}</dt>
<dd><code>当前该方法总是返回</code>false.</dd>
<dt><code>hasChildNodes()</code></dt>
<dd><code>当前该方法总是返回</code>false.</dd>
Expand All @@ -123,9 +123,9 @@ <h2 id="废弃的属性和方法">废弃的属性和方法</h2>
<dd>这个方法本不应当被在这里使用,所以无须担心其演变</dd>
<dt><code>removeAttributeNode()</code></dt>
<dd>使用{{domxref("Element.removeAttribute()")}}来代替</dd>
<dt><code>removeChild()</code>{{obsolete_inline(14)}}</dt>
<dt><code>removeChild()</code> {{Deprecated_Inline}}</dt>
<dd>通过编辑{{domxref("Attr.value")}}来实现相同效果</dd>
<dt><code>replaceChild()</code>{{obsolete_inline(14)}}</dt>
<dt><code>replaceChild()</code> {{Deprecated_Inline}}</dt>
<dd>通过编辑{{domxref("Attr.value")}}来实现相同效果</dd>
<dt><code>setAttributeNode()</code></dt>
<dd>使用{{domxref("Element.setAttribute()")}}来代替</dd>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/audiobuffer/audiobuffer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3 id="参数">参数</h3>
<p><em>继承参数自 {{domxref("AudioNodeOptions")}} 字典</em>.</p>

<dl>
<dt><em>context </em>{{obsolete_inline("")}}</dt>
<dt><em>context</em> {{Deprecated_Inline}}</dt>
<dd>一个 {{domxref("AudioContext")}} 对象. (这个参数已经被标准移除, 详细信息请参阅浏览器兼容性部分.)</dd>
<dt><em>options</em> {{optional_inline}}</dt>
<dd>Options are as follows:
Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/audiolistener/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ <h2 id="Methods">Methods</h2>
<h2 id="Deprecated_features">Deprecated features</h2>

<dl>
<dt>{{domxref("AudioListener.dopplerFactor")}} {{obsolete_inline}}</dt>
<dt>{{domxref("AudioListener.dopplerFactor")}} {{Deprecated_Inline}}</dt>
<dd>一个 Double 值,表示在呈现 <a href="http://en.wikipedia.org/wiki/Doppler_effect">多普勒效应</a> 时要使用的音高偏移量。</dd>
<dt>{{domxref("AudioListener.speedOfSound")}} {{obsolete_inline}}</dt>
<dt>{{domxref("AudioListener.speedOfSound")}} {{Deprecated_Inline}}</dt>
<dd>一个 Double 值代表了声音的速度,以米每秒的单位计算。</dd>
</dl>

Expand Down
8 changes: 4 additions & 4 deletions files/zh-cn/web/api/canvasrenderingcontext2d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ <h4 id="有前缀的_APIs">有前缀的 APIs</h4>
<dd>描述线段数组在线上从哪里开始。使用 {{domxref("CanvasRenderingContext2D.lineDashOffset")}} 替代。</dd>
<dt>{{non-standard_inline}} {{deprecated_inline}} <code>CanvasRenderingContext2D.mozTextStyle</code></dt>
<dd>在 Gecko 1.9 中引入, 不赞成使用的 {{domxref("CanvasRenderingContext2D.font")}} 属性。</dd>
<dt>{{non-standard_inline}} {{obsolete_inline}} <code>CanvasRenderingContext2D.mozDrawText()</code></dt>
<dt>{{non-standard_inline}} {{Deprecated_Inline}} <code>CanvasRenderingContext2D.mozDrawText()</code></dt>
<dd>这个方法在 Gecko 1.9 中引入,从 Gecko 7.0. 开始删除。使用 {{domxref("CanvasRenderingContext2D.strokeText()")}} 或者 {{domxref("CanvasRenderingContext2D.fillText()")}} 替代。</dd>
<dt>{{non-standard_inline}} {{obsolete_inline}} <code>CanvasRenderingContext2D.mozMeasureText()</code></dt>
<dt>{{non-standard_inline}} {{Deprecated_Inline}} <code>CanvasRenderingContext2D.mozMeasureText()</code></dt>
<dd>这个方法在 Gecko 1.9 中引入,从 Gecko 7.0. 开始未实现。使用 {{domxref("CanvasRenderingContext2D.measureText()")}} 替代。</dd>
<dt>{{non-standard_inline}} {{obsolete_inline}} <code>CanvasRenderingContext2D.mozPathText()</code></dt>
<dt>{{non-standard_inline}} {{Deprecated_Inline}} <code>CanvasRenderingContext2D.mozPathText()</code></dt>
<dd>这个方法在 Gecko 1.9 中引入,从 Gecko 7.0. 开始删除。</dd>
<dt>{{non-standard_inline}} {{obsolete_inline}}<code>CanvasRenderingContext2D.mozTextAlongPath()</code></dt>
<dt>{{non-standard_inline}} {{Deprecated_Inline}}<code>CanvasRenderingContext2D.mozTextAlongPath()</code></dt>
<dd>这个方法在 Gecko 1.9 中引入,从 Gecko 7.0. 开始删除。</dd>
</dl>

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/closeevent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h2 id="Methods">Methods</h2>
<p><em>该接口也继承了其父类 {{domxref("Event")}} 的属性。</em></p>

<dl>
<dt>{{domxref("CloseEvent.initCloseEvent()")}} {{Non-standard_inline}} {{Obsolete_inline}}</dt>
<dt>{{domxref("CloseEvent.initCloseEvent()")}} {{Non-standard_inline}} {{Deprecated_Inline}}</dt>
<dd>初始化创建的 <code>CloseEvent</code> 的值。如果该事件已经被处理,这个方法什么也不做。不要直接使用这个方法,使用 {{domxref("CloseEvent.CloseEvent", "CloseEvent()")}} ?构造器来代替。</dd>
</dl>

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/cssrule/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ <h3 id="类型常量">类型常量</h3>
<tr>
<td><code>CSSRule.UNKNOWN_RULE</code></td>
<td style="text-align: center;"><code>0</code></td>
<td>{{domxref("CSSUnknownRule")}} {{obsolete_inline}}</td>
<td>{{domxref("CSSUnknownRule")}} {{Deprecated_Inline}}</td>
<td></td>
</tr>
<tr>
<td><code>CSSRule.CHARSET_RULE</code></td>
<td style="text-align: center;"><code>2</code></td>
<td><code>CSSCharsetRule</code> {{obsolete_inline}}</td>
<td><code>CSSCharsetRule</code> {{Deprecated_Inline}}</td>
<td>(已在大多数浏览器中被移除)</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/cssstyledeclaration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2 id="方法">方法</h2>
<dd>从 CSS 声明块中删除属性。</dd>
<dt>{{domxref("CSSStyleDeclaration.setProperty()")}}</dt>
<dd>在 CSS 声明块中修改现有属性或设置新属性。</dd>
<dt>{{domxref("CSSStyleDeclaration.getPropertyCSSValue()")}} {{obsolete_inline}}</dt>
<dt>{{domxref("CSSStyleDeclaration.getPropertyCSSValue()")}} {{Deprecated_Inline}}</dt>
<dd><strong>仅在火狐浏览器中支持 getComputedStyle.</strong> 返回 {{ domxref("CSSPrimitiveValue") }} or <code>null</code> for <a href="/en-US/docs/Web/CSS/Shorthand_properties">shorthand properties</a>.</dd>
</dl>

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/document/createtreewalker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h3 id="参数">参数</h3>
</dd>
<dt><em>filter <em>{{optional_inline}}</em></em></dt>
<dd>一个可选的 {{domxref("NodeFilter")}},即一个具有 <code>acceptNode</code> 方法的对象,此方法被 {{domxref("TreeWalker")}} 调用以决定是否接受已通过 <code>whatToShow</code> 检查的节点。</dd>
<dt><em>entityReferenceExpansion<em> {{optional_inline}}</em></em> <em>{{obsolete_inline}}</em></dt>
<dt><em>entityReferenceExpansion</em> {{optional_inline}} {{Deprecated_Inline}}</dt>
<dd>一个 {{domxref("Boolean")}} 标识,指示当丢弃一个 {{domxref("EntityReference")}} 时是否同时丢弃其子树。</dd>
</dl>

Expand Down
24 changes: 12 additions & 12 deletions files/zh-cn/web/api/document/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,23 @@ <h3 id="Deprecated_properties">Deprecated properties</h3>
<dd>Should return a {{DOMxRef("DOMConfiguration")}} 对象。</dd>
<dt>{{DOMxRef("document.fgColor")}} {{Deprecated_Inline}}</dt>
<dd>获取或设置 the foreground color, or text color, of 当前文档。</dd>
<dt>{{DOMxRef("Document.fullscreen")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Document.fullscreen")}} {{Deprecated_Inline}}</dt>
<dd><code>true</code> when the document is in {{DOMxRef("Using_full-screen_mode","full-screen mode")}}.</dd>
<dt>{{DOMxRef("Document.height")}} {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Document.height")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
<dd>获取或设置 the height of 当前文档。</dd>
<dt>{{DOMxRef("Document.inputEncoding")}} {{ReadOnlyInline}} {{Deprecated_Inline}}</dt>
<dd>Alias of {{DOMxRef("Document.characterSet")}}. Use this property instead.</dd>
<dt>{{DOMxRef("Document.linkColor")}} {{Deprecated_Inline}}</dt>
<dd>获取或设置 the color of hyperlinks in the document.</dd>
<dt>{{DOMxRef("Document.vlinkColor")}} {{Deprecated_Inline}}</dt>
<dd>获取或设置 the color of visited hyperlinks.</dd>
<dt>{{DOMxRef("Document.width")}} {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Document.width")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
<dd>返回 width of 当前文档。</dd>
<dt>{{DOMxRef("Document.xmlEncoding")}} {{Deprecated_Inline}}</dt>
<dd>返回 encoding as determined by the XML declaration.</dd>
<dt>{{DOMxRef("Document.xmlStandalone")}} {{Obsolete_Inline("10.0")}}</dt>
<dt>{{DOMxRef("Document.xmlStandalone")}} {{Deprecated_Inline}}</dt>
<dd>Returns <code>true</code> if the XML declaration specifies the document to be standalone (<em>e.g.,</em> An external part of the DTD affects the document's content), else <code>false</code>.</dd>
<dt>{{DOMxRef("Document.xmlVersion")}} {{Obsolete_Inline("10.0")}}</dt>
<dt>{{DOMxRef("Document.xmlVersion")}} {{Deprecated_Inline}}</dt>
<dd>返回 version number as specified in the XML declaration or <code>"1.0"</code> if the declaration is absent.</dd>
</dl>

Expand Down Expand Up @@ -228,7 +228,7 @@ <h2 id="Methods">Methods</h2>
<dd>用给定标签名 tagName 创建一个新的元素。</dd>
<dt>{{DOMxRef("Document.createElementNS()")}}</dt>
<dd>用给定标签名 tagName 和命名空间创建一个新的元素。</dd>
<dt>{{DOMxRef("Document.createEntityReference()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Document.createEntityReference()")}} {{Deprecated_Inline}}</dt>
<dd>创建一个 new entity reference object and returns it.</dd>
<dt>{{DOMxRef("Document.createEvent()")}}</dt>
<dd>创建一个 event 对象。</dd>
Expand Down Expand Up @@ -262,15 +262,15 @@ <h2 id="Methods">Methods</h2>
<dd>Returns a {{jsxref("Promise")}} that resolves with a boolean value indicating whether the document has access to its first-party storage.</dd>
<dt>{{DOMxRef("Document.importNode()")}}</dt>
<dd>Returns a clone of a node from an external document.</dd>
<dt>{{DOMxRef("Document.normalizeDocument()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Document.normalizeDocument()")}} {{Deprecated_Inline}}</dt>
<dd>Replaces entities, normalizes text nodes, etc.</dd>
<dt>{{DOMxRef("Document.releaseCapture()")}} {{Non-standard_Inline}}</dt>
<dd>Releases the current mouse capture if it's on an element in this document.</dd>
<dt>{{DOMxRef("Document.releaseEvents()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
<dd>详见 {{DOMxRef("Window.releaseEvents()")}}。</dd>
<dt>{{DOMxRef("Document.requestStorageAccess()")}}</dt>
<dd>Returns a {{jsxref("Promise")}} that resolves if the access to first-party storage was granted, and rejects if access was denied.</dd>
<dt>{{DOMxRef("Document.routeEvent()")}} {{Non-standard_Inline}} {{Obsolete_Inline(24)}}</dt>
<dt>{{DOMxRef("Document.routeEvent()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
<dd>See {{DOMxRef("Window.routeEvent()")}}.</dd>
<dt>{{DOMxRef("Document.mozSetImageElement()")}} {{Non-standard_Inline}}</dt>
<dd>Allows you to change the element being used as the background image for a specified element ID.</dd>
Expand Down Expand Up @@ -561,13 +561,13 @@ <h3 id="Firefox_notes">Firefox notes</h3>
<p>Mozilla also define some non-standard methods:</p>

<dl>
<dt>{{DOMxRef("document.execCommandShowHelp")}} {{Obsolete_Inline("14.0")}}</dt>
<dt>{{DOMxRef("document.execCommandShowHelp")}} {{Deprecated_Inline}}</dt>
<dd>This method never did anything and always threw an exception, so it was removed in Gecko 14.0 {{geckoRelease("14.0")}}.</dd>
<dt>{{DOMxRef("document.getBoxObjectFor")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("document.getBoxObjectFor")}} {{Deprecated_Inline}}</dt>
<dd>Use the {{DOMxRef("Element.getBoundingClientRect()")}} method instead.</dd>
<dt>{{DOMxRef("document.loadOverlay")}}</dt>
<dd>Loads a <a href="/en-US/docs/XUL_Overlays">XUL overlay</a> dynamically. This only works in XUL documents.</dd>
<dt>{{DOMxRef("document.queryCommandText")}} {{Obsolete_Inline("14.0")}}</dt>
<dt>{{DOMxRef("document.queryCommandText")}} {{Deprecated_Inline}}</dt>
<dd>This method never did anything but throw an exception, and was removed in Gecko 14.0 {{geckoRelease("14.0")}}.</dd>
</dl>

Expand All @@ -576,7 +576,7 @@ <h3 id="Internet_Explorer_notes">Internet Explorer notes</h3>
<p>Microsoft defines some non-standard properties:</p>

<dl>
<dt>{{DOMxRef("document.fileSize")}}* {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("document.fileSize")}}* {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
<dd>Returns size in bytes of the document. Starting with Internet Explorer 11, that property is no longer supported. See <a href="http://msdn.microsoft.com/en-us/library/ms533752%28v=VS.85%29.aspx">MSDN</a>.</dd>
</dl>

Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/documenttype/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ <h2 id="属性">属性</h2>
<p><em>继承自父节点 {{domxref("Node")}}, 并实现了 {{domxref("ChildNode")}} 接口。</em></p>

<dl>
<dt>{{domxref("DocumentType.entities")}} {{readonlyInline}} {{obsolete_Inline}}</dt>
<dt>{{domxref("DocumentType.entities")}} {{readonlyInline}} {{Deprecated_Inline}}</dt>
<dd>一个在文档类型定义 (DTD) 中声明的实体{{domxref("NamedNodeMap")}},在这个映射(map)中的每个节点实现了{{domxref("Entity")}}接口</dd>
<dt>{{domxref("DocumentType.internalSubset")}} {{readonlyInline}} {{obsolete_Inline}}</dt>
<dt>{{domxref("DocumentType.internalSubset")}} {{readonlyInline}} {{Deprecated_Inline}}</dt>
<dd>一个表示内部子集的{{domxref("DOMString")}},如果没有的话则为<code>null</code> ,例:<code>"&lt;!ELEMENT foo (bar)&gt;"</code></dd>
<dt>{{domxref("DocumentType.name")}} {{readonlyInline}}</dt>
<dd>{{domxref("DOMString")}},文档类型的名称,例:<code>&lt;!DOCTYPE HTML&gt;</code>中的“<code>html</code>”</dd>
<dt>{{domxref("DocumentType.notations")}} {{readonlyInline}} {{obsolete_Inline}}</dt>
<dt>{{domxref("DocumentType.notations")}} {{readonlyInline}} {{Deprecated_Inline}}</dt>
<dd>在文档类型定义(DTD)中声明符号的{{domxref("NamedNodeMap")}},在这个映射(map)中的所有节点实现了{{domxref("Notation")}}接口</dd>
<dt>{{domxref("DocumentType.publicId")}} {{readonlyInline}}</dt>
<dd>一个{{domxref("DOMString")}},例:HTML5 中的空字符串——<code>"-//W3C//DTD HTML 4.01//EN"</code>。</dd>
Expand Down
10 changes: 5 additions & 5 deletions files/zh-cn/web/api/element/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ <h2 id="Methods">方法</h2>
<dd>Returns an array of attribute names from the current element.</dd>
<dt>{{DOMxRef("Element.getAttributeNS()")}}</dt>
<dd>Retrieves the value of the attribute with the specified name and namespace, from the current node and returns it as an {{jsxref("Object")}}.</dd>
<dt>{{DOMxRef("Element.getAttributeNode()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Element.getAttributeNode()")}} {{Deprecated_Inline}}</dt>
<dd>Retrieves the node representation of the named attribute from the current node and returns it as an {{DOMxRef("Attr")}}.</dd>
<dt>{{DOMxRef("Element.getAttributeNodeNS()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Element.getAttributeNodeNS()")}} {{Deprecated_Inline}}</dt>
<dd>Retrieves the node representation of the attribute with the specified name and namespace, from the current node and returns it as an {{DOMxRef("Attr")}}.</dd>
<dt>{{DOMxRef("Element.getBoundingClientRect()")}}</dt>
<dd>返回元素的大小及其相对于视口的位置。</dd>
Expand Down Expand Up @@ -185,7 +185,7 @@ <h2 id="Methods">方法</h2>
<dd>Removes the named attribute from the current node.</dd>
<dt>{{DOMxRef("Element.removeAttributeNS()")}}</dt>
<dd>Removes the attribute with the specified name and namespace, from the current node.</dd>
<dt>{{DOMxRef("Element.removeAttributeNode()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Element.removeAttributeNode()")}} {{Deprecated_Inline}}</dt>
<dd>Removes the node representation of the named attribute from the current node.</dd>
<dt>{{DOMxRef("EventTarget.removeEventListener()")}}</dt>
<dd>Removes an event listener from the element.</dd>
Expand All @@ -208,9 +208,9 @@ <h2 id="Methods">方法</h2>
<dd>Sets the value of a named attribute of the current node.</dd>
<dt>{{DOMxRef("Element.setAttributeNS()")}}</dt>
<dd>Sets the value of the attribute with the specified name and namespace, from the current node.</dd>
<dt>{{DOMxRef("Element.setAttributeNode()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Element.setAttributeNode()")}} {{Deprecated_Inline}}</dt>
<dd>Sets the node representation of the named attribute from the current node.</dd>
<dt>{{DOMxRef("Element.setAttributeNodeNS()")}} {{Obsolete_Inline}}</dt>
<dt>{{DOMxRef("Element.setAttributeNodeNS()")}} {{Deprecated_Inline}}</dt>
<dd>Sets the node representation of the attribute with the specified name and namespace, from the current node.</dd>
<dt>{{DOMxRef("Element.setCapture()")}} {{Non-standard_Inline}}</dt>
<dd>Sets up mouse event capture, redirecting all mouse events to this element.</dd>
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h2 id="属性">属性</h2>
<dt>
<h3 id="废弃属性">废弃属性</h3>
</dt>
<dt>{{domxref("Event.scoped")}} {{readonlyinline}} {{obsolete_inline}}</dt>
<dt>{{domxref("Event.scoped")}} {{readonlyinline}} {{Deprecated_Inline}}</dt>
<dd>已废弃,使用 {{domxref("Event.composed")}} 代替此属性。<br>
一个{{jsxref("Boolean", "布尔值")}},表示给定的事件是否会穿过 Shadow DOM,进入到标准 DOM 中。</dd>
</dl>
Expand Down Expand Up @@ -166,10 +166,10 @@ <h3 id="废弃方法">废弃方法</h3>
<dt>{{domxref("Event.getPreventDefault()")}} {{non-standard_inline}}</dt>
<dd>非标准方法;使用 {{domxref("Event.defaultPrevented")}} 属性代替此方法。<br>
返回 {{domxref("Event.defaultPrevented")}} 的值。</dd>
<dt>{{domxref("event.preventBubble")}} {{Obsolete_inline(24)}}</dt>
<dt>{{domxref("event.preventBubble")}} {{Deprecated_Inline}}</dt>
<dd>已废弃;使用 {{domxref("event.stopPropagation")}} 代替此方法。<br>
阻止事件继续冒泡。</dd>
<dt>{{domxref("event.preventCapture")}} {{Obsolete_inline(24)}}</dt>
<dt>{{domxref("event.preventCapture")}} {{Deprecated_Inline}}</dt>
<dd>已废弃;使用 {{domxref("event.stopPropagation")}} 代替此方法。</dd>
<dt></dt>
</dl>
Expand Down
Loading