A boundary point is a concept defined in the DOM spec but never given a formal WebIDL interface.
More...
A boundary point is a concept defined in the DOM spec but never given a formal WebIDL interface.
It is a combination of a node and an offset.
- See also
- https://dom.spec.whatwg.org/#concept-range-bp
◆ __construct()
Wikimedia\Dodo\Internal\BoundaryPoint::__construct |
( |
Node | $node, |
|
|
int | $offset ) |
Create a new BoundaryPoint from a Node and a non-negative offset.
- Parameters
-
Node | $node | |
int | $offset | a non-negative offset |
◆ compare()
int Wikimedia\Dodo\Internal\BoundaryPoint::compare |
( |
BoundaryPoint | $bp | ) |
|
◆ equals()
bool Wikimedia\Dodo\Internal\BoundaryPoint::equals |
( |
BoundaryPoint | $bp | ) |
|
- Parameters
-
- Returns
- bool true iff $this is the same boundary point as $bp
◆ getNode()
Node Wikimedia\Dodo\Internal\BoundaryPoint::getNode |
( |
| ) |
|
- Returns
- Node this boundary point's node.
◆ getOffset()
int Wikimedia\Dodo\Internal\BoundaryPoint::getOffset |
( |
| ) |
|
- Returns
- int this boundary point's offset.
The documentation for this class was generated from the following file:
- src/Internal/BoundaryPoint.php