DOM.moveTo

Moves node into the new container, places it before the given anchor.

{
  "name": "moveTo",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "description": "Id of the node to drop."
    },
    {
      "name": "targetNodeId",
      "$ref": "NodeId",
      "description": "Id of the element to drop into."
    },
    {
      "name": "insertBeforeNodeId",
      "$ref": "NodeId",
      "optional": true,
      "description": "Drop node before given one."
    }
  ],
  "returns": [
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "description": "New id of the moved node."
    }
  ],
  "description": "Moves node into the new container, places it before the given anchor."
}