Dodo
DOm DOcument implementation
Loading...
Searching...
No Matches
Wikimedia\Dodo\StaticRange Class Reference

Returns a new range object that does not update when the node tree mutates. More...

+ Inheritance diagram for Wikimedia\Dodo\StaticRange:

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
 

Detailed Description

Returns a new range object that does not update when the node tree mutates.

See also
https://dom.spec.whatwg.org/#staticrange

Constructor & Destructor Documentation

◆ __construct()

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"]).

Parameters
\Wikimedia\IDLeDOM\StaticRangeInit | array$init

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