package js.html
Available on jsThe
Rangeinterface represents a fragment of a document that can contain nodes and parts of text nodes.Documentation Range by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new ()Throws:
null |
DOMError |
|---|
read only collapsed:BoolReturns a Boolean indicating whether the range's start and end points are at the same position.
read only commonAncestorContainer:NodeReturns the deepest Node that contains the startContainer and endContainer nodes.
read only endContainer:NodeReturns the Node within which the Range ends.
read only endOffset:IntReturns a number representing where in the endContainer the Range ends.
read only startContainer:NodeReturns the Node within which the Range starts.
read only startOffset:IntReturns a number representing where in the startContainer the Range starts.
cloneContents ():DocumentFragmentThrows:
null |
DOMError |
|---|
cloneRange ():Range collapse (toStart:Bool = false):VoidcompareBoundaryPoints (how:Int, sourceRange:Range):IntThrows:
null |
DOMError |
|---|
comparePoint (node:Node, offset:Int):IntThrows:
null |
DOMError |
|---|
createContextualFragment (fragment:String):DocumentFragmentThrows:
null |
DOMError |
|---|
deleteContents ():VoidThrows:
null |
DOMError |
|---|
detach ():VoidextractContents ():DocumentFragmentThrows:
null |
DOMError |
|---|
getBoundingClientRect ():DOMRectgetClientRects ():DOMRectListinsertNode (node:Node):VoidThrows:
null |
DOMError |
|---|
intersectsNode (node:Node):BoolThrows:
null |
DOMError |
|---|
isPointInRange (node:Node, offset:Int):BoolThrows:
null |
DOMError |
|---|
selectNode (refNode:Node):VoidThrows:
null |
DOMError |
|---|
selectNodeContents (refNode:Node):VoidThrows:
null |
DOMError |
|---|
setEnd (refNode:Node, offset:Int):VoidThrows:
null |
DOMError |
|---|
setEndAfter (refNode:Node):VoidThrows:
null |
DOMError |
|---|
setEndBefore (refNode:Node):VoidThrows:
null |
DOMError |
|---|
setStart (refNode:Node, offset:Int):VoidThrows:
null |
DOMError |
|---|
setStartAfter (refNode:Node):VoidThrows:
null |
DOMError |
|---|
setStartBefore (refNode:Node):VoidThrows:
null |
DOMError |
|---|
surroundContents (newParent:Node):VoidThrows:
null |
DOMError |
|---|
static inline read only END_TO_END:Int = 2 static inline read only END_TO_START:Int = 3 static inline read only START_TO_END:Int = 1 static inline read only START_TO_START:Int = 0
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Range.html