DOM.removeAttributeRemoves attribute with given name from an element with given id.
| Name | Type | Description |
|---|---|---|
nodeId | NodeId | Id of the element to remove attribute from. |
name | string | Name of the attribute to remove. |
{
"id": 1,
"method": "DOM.removeAttribute",
"params": {
"nodeId": 1,
"name": "example-name"
}
}
{
"id": 1,
"result": {}
}
const result = await send('DOM.removeAttribute', {"nodeId": 1, "name": "example-name"});
console.log(result);