aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/domlocator
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/domlocator')
-rw-r--r--files/zh-cn/web/api/domlocator/index.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/domlocator/index.html b/files/zh-cn/web/api/domlocator/index.html
new file mode 100644
index 0000000000..77ad2f17bb
--- /dev/null
+++ b/files/zh-cn/web/api/domlocator/index.html
@@ -0,0 +1,51 @@
+---
+title: DOMLocator
+slug: orphaned/Web/API/DOMLocator
+translation_of: Web/API/DOMLocator
+original_slug: Web/API/DOMLocator
+---
+<p>{{APIRef("DOM")}}{{obsolete_header}}</p>
+
+<div class="warning">
+<p>NOTE: This is not implemented in Mozilla</p>
+</div>
+
+<p>Indicates a location such as where an error occurred. Returned by DOMError.location.</p>
+
+<h2 id="Properties">Properties</h2>
+
+<dl>
+ <dt>{{domxref("DOMLocator.lineNumber")}} {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+ <dt>{{domxref("DOMLocator.columnNumber")}}  {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+ <dt>{{domxref("DOMLocator.byteOffset")}} {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+ <dt>{{domxref("DOMLocator.utf16Offset")}} {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+ <dt>{{domxref("DOMLocator.relatedNode")}} {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+ <dt>{{domxref("DOMLocator.uri")}} {{ReadOnlyInline}}</dt>
+ <dd>Returns a positiove integer or -1.</dd>
+</dl>
+
+<h2 id="Methods">Methods</h2>
+
+<p><em>This interface neither implements, nor inherits, any method.</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("DOM3 Core", "core.html#Interfaces-DOMLocator", "DOMLocator")}}</td>
+ <td>{{Spec2("DOM3 Core")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table> \ No newline at end of file