DomCoordinate
yosoi.outcomes.DomCoordinate
class DomCoordinate(ImmutableModel):
Rendered DOM node identity scoped to one immutable snapshot epoch.
Attributes: document_epoch: Snapshot epoch needed to interpret the node ID. node_id: Positive snapshot-local identity, without a live DOM membership check.
Source: python/yosoi/outcomes.py:278
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Fields and class attributes
Section titled “Fields and class attributes”document_epoch: DocumentEpoch
node_id: DomNodeId
Methods
Section titled “Methods”@classmethod
def new(cls, document_epoch: DocumentEpoch, node_id: DomNodeId) -> Self:
Pair a document epoch with a rendered-DOM node identity.
Args: document_epoch: Immutable rendered-DOM snapshot epoch. node_id: Positive snapshot-local identity.
Returns: A coordinate without querying the DOM or verifying snapshot membership.
Raises: LocatorError: Supplied values cannot form valid Rust coordinate data.