Mac OS X Reference Library Apple Developer
Search

Range

Module:
ranges
Declared In:

Overview

Use the links in the table of contents to the left to access the documentation.



Functions

cloneContents
cloneRange
collapse
compareBoundaryPoints
compareNode
comparePoint
createContextualFragment
deleteContents
detach
expand
extractContents
getBoundingClientRect
getClientRects
insertNode
intersectsNode
isPointInRange
selectNode
selectNodeContents
setEnd
setEndAfter
setEndBefore
setStart
setStartAfter
setStartBefore
surroundContents
toString

cloneContents



DocumentFragment cloneContents() raises(DOMException); 

cloneRange



Range cloneRange() raises(DOMException); 

collapse



void collapse(
    in boolean toStart) raises(DOMException); 

compareBoundaryPoints



short compareBoundaryPoints(
    in CompareHow how, 
    in Range sourceRange) raises(DOMException); 

compareNode



short compareNode(
    in Node refNode) raises(RangeException, DOMException); 

comparePoint



short comparePoint(
    in Node refNode, 
    in long offset) raises(RangeException, DOMException); 

createContextualFragment



DocumentFragment createContextualFragment(
    in DOMString html) raises(DOMException); 

deleteContents



void deleteContents() raises(DOMException); 

detach



void detach() raises(DOMException); 

expand



void expand(
    in DOMString unit) raises(RangeException, DOMException); 

extractContents



DocumentFragment extractContents() raises(DOMException); 

getBoundingClientRect



ClientRect getBoundingClientRect(); 

getClientRects



ClientRectList getClientRects(); 

insertNode



void insertNode(
    in Node newNode) raises(DOMException, RangeException); 

intersectsNode



boolean intersectsNode(
    in Node refNode) raises(RangeException, DOMException); 

isPointInRange



boolean isPointInRange(
    in Node refNode, 
    in long offset) raises(RangeException, DOMException); 

selectNode



void selectNode(
    in Node refNode) raises(RangeException, DOMException); 

selectNodeContents



void selectNodeContents(
    in Node refNode) raises(RangeException, DOMException); 

setEnd



void setEnd(
    in Node refNode, 
    in long offset) raises(RangeException, DOMException); 

setEndAfter



void setEndAfter(
    in Node refNode) raises(RangeException, DOMException); 

setEndBefore



void setEndBefore(
    in Node refNode) raises(RangeException, DOMException); 

setStart



void setStart(
    in Node refNode, 
    in long offset) raises(RangeException, DOMException); 

setStartAfter



void setStartAfter(
    in Node refNode) raises(RangeException, DOMException); 

setStartBefore



void setStartBefore(
    in Node refNode) raises(RangeException, DOMException); 

surroundContents



void surroundContents(
    in Node newParent) raises(DOMException, RangeException); 

toString



DOMString toString() raises(DOMException); 

Member Data

collapsed
commonAncestorContainer
END_TO_END
END_TO_START
endContainer
endOffset
NODE_AFTER
NODE_BEFORE
NODE_BEFORE_AND_AFTER
NODE_INSIDE
START_TO_END
START_TO_START
startContainer
startOffset
text

collapsed



readonly attribute boolean collapsed getter raises(DOMException); 

commonAncestorContainer



readonly attribute Node commonAncestorContainer getter raises(DOMException); 

END_TO_END



const unsigned short END_TO_END = 2; 

END_TO_START



const unsigned short END_TO_START = 3; 

endContainer



readonly attribute Node endContainer getter raises(DOMException); 

endOffset



readonly attribute long endOffset getter raises(DOMException); 

NODE_AFTER



const unsigned short NODE_AFTER = 1; 

NODE_BEFORE



const unsigned short NODE_BEFORE = 0; 

NODE_BEFORE_AND_AFTER



const unsigned short NODE_BEFORE_AND_AFTER = 2; 

NODE_INSIDE



const unsigned short NODE_INSIDE = 3; 

START_TO_END



const unsigned short START_TO_END = 1; 

START_TO_START



const unsigned short START_TO_START = 0; 

startContainer



readonly attribute Node startContainer getter raises(DOMException); 

startOffset



readonly attribute long startOffset getter raises(DOMException); 

text



readonly attribute DOMString text; 

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-05-27