Packagedom.core
Interfacepublic interface DOMLocator

Introduced in: DOM 3 Core 

Indicates a location such as where an error occurred. Returned by DOMError.location.

Note (Mozilla): This is not implemented in Mozilla

See also

MDC - DOMLocator
W3C - DOMLocator
dom.core.DOMError.location


Public Properties
 PropertyDefined By
  DOM 3 Core byteOffset : Number
[read-only] The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available.
DOMLocator
  DOM 3 Core columnNumber : Number
[read-only] The column number this locator is pointing to, or -1 if there is no column number available.
DOMLocator
  DOM 3 Core lineNumber : Number
[read-only] The line number this locator is pointing to, or -1 if there is no column number available.
DOMLocator
  DOM 3 Core relatedNode : Node
[read-only] The node this locator is pointing to, or null if no node is available.
DOMLocator
  DOM 3 Core uri : DOMString
[read-only] The URI this locator is pointing to, or null if no URI is available.
DOMLocator
  DOM 3 Core utf16Offset : Number
[read-only] The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available.
DOMLocator
Property Detail
DOM 3 Core byteOffsetproperty
byteOffset:Number  [read-only]

Introduced in: DOM 3 Core 

The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available.


Implementation
    public function get byteOffset():Number

See also

DOM 3 Core columnNumberproperty 
columnNumber:Number  [read-only]

Introduced in: DOM 3 Core 

The column number this locator is pointing to, or -1 if there is no column number available.


Implementation
    public function get columnNumber():Number

See also

DOM 3 Core lineNumberproperty 
lineNumber:Number  [read-only]

Introduced in: DOM 3 Core 

The line number this locator is pointing to, or -1 if there is no column number available.


Implementation
    public function get lineNumber():Number

See also

DOM 3 Core relatedNodeproperty 
relatedNode:Node  [read-only]

Introduced in: DOM 3 Core 

The node this locator is pointing to, or null if no node is available.


Implementation
    public function get relatedNode():Node

See also

DOM 3 Core uriproperty 
uri:DOMString  [read-only]

Introduced in: DOM 3 Core 

The URI this locator is pointing to, or null if no URI is available.


Implementation
    public function get uri():DOMString

See also

DOM 3 Core utf16Offsetproperty 
utf16Offset:Number  [read-only]

Introduced in: DOM 3 Core 

The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available.


Implementation
    public function get utf16Offset():Number

See also