Dodo
DOm DOcument implementation
|
Returns a new range object that does not update when the node tree mutates. More...
Public Member Functions | |
__construct ( $init) | |
The new StaticRange(init) constructor steps are: If init["startContainer"] or init["endContainer"] is a DocumentType or Attr node, then throw an "InvalidNodeTypeError" DOMException. | |
Public Member Functions inherited from Wikimedia\Dodo\AbstractRange | |
Node | getStartContainer () |
int | getStartOffset () |
Node | getEndContainer () |
int | getEndOffset () |
bool | getCollapsed () |
Additional Inherited Members | |
Protected Member Functions inherited from Wikimedia\Dodo\AbstractRange | |
__construct (Node $startContainer, int $startOffset, Node $endContainer, int $endOffset) | |
Create a new AbstractRange object. | |
Protected Attributes inherited from Wikimedia\Dodo\AbstractRange | |
BoundaryPoint | $_start |
BoundaryPoint | $_end |
Returns a new range object that does not update when the node tree mutates.
Wikimedia\Dodo\StaticRange::__construct | ( | $init | ) |
The new StaticRange(init) constructor steps are: If init["startContainer"] or init["endContainer"] is a DocumentType or Attr node, then throw an "InvalidNodeTypeError" DOMException.
Set this’s start to (init["startContainer"], init["startOffset"]) and end to (init["endContainer"], init["endOffset"]).
\Wikimedia\IDLeDOM\StaticRangeInit | array | $init |