AMP_Base_Embed_Handler::maybe_remove_script_sibling( DOMElement $node,  callable $match_callback )

Description #

Removes the node's nearest <script> sibling with a src attribute containing the base src URL provided.

Parameters #


(DOMElement) (Required) The DOMNode to whose sibling is the script to be removed.


(callable) (Required) Callback which is passed the script element to determine if it is a match.

Changelog #

Version Description
2.1 Introduced.