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 move."
    },
    {
      "name": "targetNodeId",
      "$ref": "NodeId",
      "description": "Id of the element to drop the moved node into."
    },
    {
      "name": "insertBeforeNodeId",
      "$ref": "NodeId",
      "optional": true,
      "description": "Drop node before this one (if absent, the moved node becomes the last child of targetNodeId)."
    }
  ],
  "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."
}