AMP_Base_Sanitizer::remove_invalid_child( DOMNode|DOMElement $node, array $validation_error = array() )
Description #
Removes an invalid child of a node.
Also, calls the mutation callback for it. This tracks all the nodes that were removed.
Parameters #
- $node
-
(Required) The node to remove.
- $validation_error
-
(Optional) Validation error details.
Default value:array()