pub struct SetTextMarkerParams {
pub node_id: Option<NodeId>,
pub backend_node_id: Option<BackendNodeId>,
pub object_id: Option<RemoteObjectId>,
pub type: SetTextMarkerType,
pub start: i64,
pub end: i64,
}Expand description
Sets a spelling or grammar error marker on the given range of text. See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.
Experimental: may change without notice.
Parameters of DOM.setTextMarker.
Fields§
§node_id: Option<NodeId>Identifier of the node.
backend_node_id: Option<BackendNodeId>Identifier of the backend node.
object_id: Option<RemoteObjectId>JavaScript object id of the node wrapper.
type: SetTextMarkerTypeThe type of marker to set on the given range of text.
start: i64Start offset into the element’s rendered text in UTF-16 code units. For a text control, an offset into the control’s value. Offsets count text in DOM order and do not enter shadow trees. To mark text inside a shadow tree, pass the element inside the shadow tree.
end: i64End offset (exclusive) in the same units and space as start.