Members

(constant) BoundaryFlags

Boundary bit flags. Use these to define and work with a boundary's side. The primary bit flags are ordered by their DOM position, so can be used for comparisions. E.g. BEFORE_OPEN < AFTER_OPEN. To use the filter bitmasks, you need to use bitwise operations, for example:

BEFORE_OPEN & FILTER_OPEN // true
(AFTER_OPEN | BEFORE_CLOSE) & FILTER_OPEN // true
Properties
NameTypeDescription
BEFORE_OPEN

Denotes a position before the opening boundary of a node (outside the node)

AFTER_OPEN

Denotes a position after the opening boundary of a node (inside the node)

BEFORE_CLOSE

Denotes a position before the closing boundary of a node (inside the node)

AFTER_CLOSE

Denotes a position after the closing boundary of a node (outside the node)

FILTER_ALL

Bitmask to filter any position

FILTER_OPEN

Bitmask to filter positions relative to a node's opening boundary

FILTER_CLOSE

Bitmask to filter positions relative to a node's closing boundary

FILTER_BEFORE

Bitmask to filter positions before the opening or closing node boundary

FILTER_AFTER

Bitmask to filter positions after the opening or closing node boundary

FILTER_INSIDE

Bitmask to filter positions inside the reference node

FILTER_OUTSIDE

Bitmask to filter positions outside the reference node

POSITION_BEFORE

Used to indicate a Boundary that is before a node; BEFORE_OPEN > POSITION_BEFORE

POSITION_INSIDE

Used to indicate a Boundary that is inside a node; AFTER_OPEN > POSITION_INSIDE > BEFORE_CLOSE

POSITION_AFTER

Used to indicate a Boundary that is after a node; POSITION_AFTER > AFTER_CLOSE