---
title: DOMLocator
slug: Web/API/DOMLocator
translation_of: Web/API/DOMLocator
---
{{APIRef("DOM")}}{{obsolete_header}}
NOTE: This is not implemented in Mozilla
Indicates a location such as where an error occurred. Returned by DOMError.location.
Properties
- {{domxref("DOMLocator.lineNumber")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
- {{domxref("DOMLocator.columnNumber")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
- {{domxref("DOMLocator.byteOffset")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
- {{domxref("DOMLocator.utf16Offset")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
- {{domxref("DOMLocator.relatedNode")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
- {{domxref("DOMLocator.uri")}} {{ReadOnlyInline}}
- Returns a positiove integer or -1.
Methods
This interface neither implements, nor inherits, any method.
Specifications
Specification |
Status |
Comment |
{{SpecName("DOM3 Core", "core.html#Interfaces-DOMLocator", "DOMLocator")}} |
{{Spec2("DOM3 Core")}} |
Initial definition |