AMP_Base_Embed_Handler
Description #
Class AMP_Base_Embed_Handler
Source #
Methods #
- __construct — Constructor.
- create_overflow_button_element — Create overflow button element.
- create_overflow_button_markup — Create overflow button markup.
- get_child_elements — Get all child elements of the specified element.
- get_scripts — Get mapping of AMP component names to AMP script URLs.
- match_element_attributes — Get regex pattern for matching HTML attributes from a given tag name.
- maybe_remove_script_sibling — Removes the node's nearest <script> sibling with a src attribute containing the base src URL provided.
- register_embed — Registers embed.
- unregister_embed — Unregisters embed.
- unwrap_p_element — Replace an element's parent with itself if the parent is a <p> tag which has no attributes and has no other children.