AbstractRange

@native @JSGlobal @JSType
abstract class AbstractRange extends Object

The AbstractRange abstract interface is the base class upon which all DOM range types are defined. A range is an object that indicates the start and end points of a section of content within the document.

class Object
trait Any
class Object
trait Matchable
class Any
class Range

Value members

Concrete methods

def collapsed: Boolean

The Range.collapsed read-only property returns a Boolean flag indicating whether the start and end points of the Range are at the same position. It returns true if the start and end boundary points of the Range are the same point in the DOM, false if not.

The Range.collapsed read-only property returns a Boolean flag indicating whether the start and end points of the Range are at the same position. It returns true if the start and end boundary points of the Range are the same point in the DOM, false if not.

The Range.endContainer read-only property returns the Node within which the Range ends. To change the end position of a node, use the Range.setEnd() method or a similar one.

The Range.endContainer read-only property returns the Node within which the Range ends. To change the end position of a node, use the Range.setEnd() method or a similar one.

def endOffset: Int

The Range.endOffset read-only property returns a number representing where in the Range.endContainer the Range ends.

The Range.endOffset read-only property returns a number representing where in the Range.endContainer the Range ends.

The Range.startContainer read-only property returns the Node within which the Range starts. To change the start position of a node, use one of the Range.setStart() methods.

The Range.startContainer read-only property returns the Node within which the Range starts. To change the start position of a node, use one of the Range.setStart() methods.

def startOffset: Int

The Range.startOffset read-only property returns a number representing where in the startContainer the Range starts.

The Range.startOffset read-only property returns a number representing where in the startContainer the Range starts.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object