JavaScripture
Contribute via GitHub
Feedback
Range
Instance Properties
collapsed
commonAncestorContainer
endContainer
endOffset
startContainer
startOffset
Instance Methods
cloneContents
cloneRange
collapse
compareBoundaryPoints
deleteContents
detach
extractContents
insertNode
selectNode
selectNodeContents
setEnd
setEndAfter
setEndBefore
setStart
setStartAfter
setStartBefore
surroundContents
Range Properties
END_TO_END
END_TO_START
START_TO_END
START_TO_START
DOM API
All API
No API set selected.
Range
:
Object
A Range is a selection of the content of a document. Create a Range with
document.createRange()
.
Spec
Instance Properties
collapsed
:
Boolean
readonly
commonAncestorContainer
:
Node
readonly
endContainer
:
Node
readonly
endOffset
:
Number
readonly
startContainer
:
Node
readonly
startOffset
:
Number
readonly
Instance Methods
cloneContents
() :
DocumentFragment
cloneRange
() :
Range
collapse
(
toStart
:
Boolean
) :
undefined
compareBoundaryPoints
(
how
:
Number
,
sourceRange
:
Range
) :
Number
deleteContents
() :
undefined
detach
() :
undefined
extractContents
() :
DocumentFragment
insertNode
(
newNode
:
Node
) :
undefined
selectNode
(
refNode
:
Node
) :
undefined
selectNodeContents
(
refNode
:
Node
) :
undefined
setEnd
(
refNode
:
Node
,
offset
:
Number
) :
undefined
setEndAfter
(
refNode
:
Node
) :
undefined
setEndBefore
(
refNode
:
Node
) :
undefined
setStart
(
refNode
:
Node
,
offset
:
Number
) :
undefined
setStartAfter
(
refNode
:
Node
) :
undefined
setStartBefore
(
refNode
:
Node
) :
undefined
surroundContents
(
newParent
:
Node
) :
undefined
Range Properties
END_TO_END
:
Number
readonly
value = 2
END_TO_START
:
Number
readonly
value = 3
START_TO_END
:
Number
readonly
value = 1
START_TO_START
:
Number
readonly
value = 0
home
license
contribute
feedback
toggle light/dark mode
Copyright © JavaScripture Contributors