← Back to DOM domain
DOM.getContentQuads
Returns quads that describe node position on the page. This method
might return multiple quads for inline nodes.
Domain: DOM
experimental
Parameters
| Name | Type | Description |
nodeId (optional) | NodeId | Identifier of the node. |
backendNodeId (optional) | BackendNodeId | Identifier of the backend node. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node wrapper. |
Returns
| Name | Type | Description |
quads | array | Quads that describe node layout relative to viewport. |
Example Request
{
"id": 1,
"method": "DOM.getContentQuads"
}
Example Response
{
"id": 1,
"result": {
"quads": []
}
}
Usage in Node.js
const result = await send('DOM.getContentQuads');
console.log(result);
// {"quads": []}