DOM.setAttributesAsText

Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

{
  "name": "setAttributesAsText",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "description": "Id of the element to set attributes for."
    },
    {
      "name": "text",
      "type": "string",
      "description": "Text with a number of attributes. Will parse this text using HTML parser."
    },
    {
      "name": "name",
      "type": "string",
      "optional": true,
      "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully."
    }
  ],
  "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs."
}