webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
Range Interface Reference

import"Range.idl";

Public Member Functions

void setStart (Node refNode, unsigned long offset)
 
void setEnd (Node refNode, unsigned long offset)
 
void setStartBefore (Node refNode)
 
void setStartAfter (Node refNode)
 
void setEndBefore (Node refNode)
 
void setEndAfter (Node refNode)
 
void collapse (optional boolean toStart=false)
 
void expand (optional DOMString unit="")
 
void selectNode (Node refNode)
 
void selectNodeContents (Node refNode)
 
short compareBoundaryPoints (unsigned short how, Range sourceRange)
 
void deleteContents ()
 
DocumentFragment extractContents ()
 
DocumentFragment cloneContents ()
 
void insertNode (Node newNode)
 
void surroundContents (Node newParent)
 
Range cloneRange ()
 
DOMString toString ()
 
void detach ()
 
ClientRectList getClientRects ()
 
ClientRect getBoundingClientRect ()
 
DocumentFragment createContextualFragment (DOMString html)
 
short compareNode (Node refNode)
 
boolean intersectsNode (Node refNode)
 
short comparePoint (Node refNode, unsigned long offset)
 
boolean isPointInRange (Node refNode, unsigned long offset)
 

Public Attributes

readonly attribute Node startContainer
 
readonly attribute long startOffset
 
readonly attribute Node endContainer
 
readonly attribute long endOffset
 
readonly attribute boolean collapsed
 
readonly attribute Node commonAncestorContainer
 
const unsigned short START_TO_START = 0
 
const unsigned short START_TO_END = 1
 
const unsigned short END_TO_END = 2
 
const unsigned short END_TO_START = 3
 
const unsigned short NODE_BEFORE = 0
 
const unsigned short NODE_AFTER = 1
 
const unsigned short NODE_BEFORE_AND_AFTER = 2
 
const unsigned short NODE_INSIDE = 3
 

Member Function Documentation

◆ cloneContents()

DocumentFragment Range::cloneContents ( )

◆ cloneRange()

Range Range::cloneRange ( )

◆ collapse()

void Range::collapse ( optional boolean  toStart = false)

◆ compareBoundaryPoints()

short Range::compareBoundaryPoints ( unsigned short  how,
Range  sourceRange 
)

◆ compareNode()

short Range::compareNode ( Node  refNode)

◆ comparePoint()

short Range::comparePoint ( Node  refNode,
unsigned long  offset 
)

◆ createContextualFragment()

DocumentFragment Range::createContextualFragment ( DOMString  html)

◆ deleteContents()

void Range::deleteContents ( )

◆ detach()

void Range::detach ( )

◆ expand()

void Range::expand ( optional DOMString  unit = "")

◆ extractContents()

DocumentFragment Range::extractContents ( )

◆ getBoundingClientRect()

ClientRect Range::getBoundingClientRect ( )

◆ getClientRects()

ClientRectList Range::getClientRects ( )

◆ insertNode()

void Range::insertNode ( Node  newNode)

◆ intersectsNode()

boolean Range::intersectsNode ( Node  refNode)

◆ isPointInRange()

boolean Range::isPointInRange ( Node  refNode,
unsigned long  offset 
)

◆ selectNode()

void Range::selectNode ( Node  refNode)

◆ selectNodeContents()

void Range::selectNodeContents ( Node  refNode)

◆ setEnd()

void Range::setEnd ( Node  refNode,
unsigned long  offset 
)

◆ setEndAfter()

void Range::setEndAfter ( Node  refNode)

◆ setEndBefore()

void Range::setEndBefore ( Node  refNode)

◆ setStart()

void Range::setStart ( Node  refNode,
unsigned long  offset 
)

◆ setStartAfter()

void Range::setStartAfter ( Node  refNode)

◆ setStartBefore()

void Range::setStartBefore ( Node  refNode)

◆ surroundContents()

void Range::surroundContents ( Node  newParent)

◆ toString()

DOMString Range::toString ( )

Member Data Documentation

◆ collapsed

readonly attribute boolean Range::collapsed

◆ commonAncestorContainer

readonly attribute Node Range::commonAncestorContainer

◆ END_TO_END

const unsigned short Range::END_TO_END = 2

◆ END_TO_START

const unsigned short Range::END_TO_START = 3

◆ endContainer

readonly attribute Node Range::endContainer

◆ endOffset

readonly attribute long Range::endOffset

◆ NODE_AFTER

const unsigned short Range::NODE_AFTER = 1

◆ NODE_BEFORE

const unsigned short Range::NODE_BEFORE = 0

◆ NODE_BEFORE_AND_AFTER

const unsigned short Range::NODE_BEFORE_AND_AFTER = 2

◆ NODE_INSIDE

const unsigned short Range::NODE_INSIDE = 3

◆ START_TO_END

const unsigned short Range::START_TO_END = 1

◆ START_TO_START

const unsigned short Range::START_TO_START = 0

◆ startContainer

readonly attribute Node Range::startContainer

◆ startOffset

readonly attribute long Range::startOffset

The documentation for this interface was generated from the following file: