aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmldataelement
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/htmldataelement')
-rw-r--r--files/zh-cn/web/api/htmldataelement/index.html68
-rw-r--r--files/zh-cn/web/api/htmldataelement/value/index.html45
2 files changed, 113 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmldataelement/index.html b/files/zh-cn/web/api/htmldataelement/index.html
new file mode 100644
index 0000000000..504b6c0eec
--- /dev/null
+++ b/files/zh-cn/web/api/htmldataelement/index.html
@@ -0,0 +1,68 @@
+---
+title: HTMLDataElement
+slug: Web/API/HTMLDataElement
+tags:
+ - API
+ - HTML DOM
+ - HTMLDataElement
+ - Interface
+ - NeedsTranslation
+ - Reference
+ - TopicStub
+ - data
+translation_of: Web/API/HTMLDataElement
+---
+<div>{{APIRef("HTML DOM")}}</div>
+
+<p>The <strong><code>HTMLDataElement</code></strong> interface provides special properties (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("data")}} elements.</p>
+
+<p>{{InheritanceDiagram(600, 120)}}</p>
+
+<h2 id="Properties">Properties</h2>
+
+<p><em>Inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p>
+
+<dl>
+ <dt>{{domxref("HTMLDataElement.value")}}</dt>
+ <dd>Is a {{domxref("DOMString")}} reflecting the {{htmlattrxref("value", "data")}} HTML attribute, containing a machine-readable form of the element's value.</dd>
+</dl>
+
+<h2 id="Methods">Methods</h2>
+
+<p><em>No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.</em></p>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "#htmldataelement", "HTMLDataElement")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-data-element', 'HTMLDataElement')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<div>
+
+
+<p>{{Compat("api.HTMLDataElement")}}</p>
+</div>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>The HTML element implementing this interface: {{HTMLElement("data")}}.</li>
+</ul>
diff --git a/files/zh-cn/web/api/htmldataelement/value/index.html b/files/zh-cn/web/api/htmldataelement/value/index.html
new file mode 100644
index 0000000000..cc849ee548
--- /dev/null
+++ b/files/zh-cn/web/api/htmldataelement/value/index.html
@@ -0,0 +1,45 @@
+---
+title: HTMLDataElement.value
+slug: Web/API/HTMLDataElement/value
+translation_of: Web/API/HTMLDataElement/value
+---
+<p>{{APIRef("HTML DOM")}}</p>
+
+<p>{{domxref("HTMLDataElement")}} 接口的 <strong><code>value</code></strong> 属性返回反映   {{htmlattrxref("value", "data")}} HTML 属性的{{domxref("DOMString")}} 。</p>
+
+<h2 id="Syntax">Syntax</h2>
+
+<pre class="syntaxbox">var <em>aValue</em> = <em>htmlDataElement</em>.<em>value</em>
+<em>htmlDataElement</em>.<em>value</em> = <em>aValue</em></pre>
+
+<h3 id="Value">Value</h3>
+
+<p>A {{domxref("DOMString")}}.</p>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "#dom-data-value", "HTMLDataElement.value")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C','text-level-semantics.html#dom-data-value','value')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<div class="hidden">此页面中的兼容性表是由结构化数据生成的。如果您想提供数据,请查看 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并向我们发送 pull request。</div>
+
+<p>{{Compat("api.HTMLDataElement.value")}}</p>