Remove the paired AMP endpoint from a given URL.
Turn a given URL into a paired AMP URL.
Determine a given URL is for a paired AMP request.
Get paired AMP URL using a endpoint suffix.
Get paired AMP URL using query var (
Determine whether the given URL has the query var.
Strip paired endpoint suffix.
Determine whether the given URL has the endpoint suffix.
Strip paired query var.
Removes the node's nearest
<script> sibling with a
src attribute containing the base
src URL provided.
Copy one or more attributes from one element to the other.
Merge two sets of AMP events & actions.
Register an AMP action to an event on a given element.
Get the ID for an element.
Check whether a given element has a specific class.
Determines if a DOMElement's node is empty or not.
Add one or more HTML element attributes to a node's DOMElement.
Extract a DOMElement node's HTML element attributes and return as an array.
Create a new node w/attributes (a DOMElement) and add to the passed Dom\Document.
Return valid HTML content extracted from the DOMNode passed as a parameter.
Return valid HTML *body* content extracted from the Dom\Document passed as a parameter.
Return a valid Dom\Document representing arbitrary HTML content passed as a parameter.
Get attribute prefix for converted amp-bind attributes.
Determine whether a node can be in the head.
Return a valid Dom\Document representing HTML document passed as a parameter.
Replace an element's parent with itself if the parent is a <p> tag which has no attributes and has no other children.
Get all child elements of the specified element.
Get regex pattern for matching HTML attributes from a given tag name.
Get mapping of AMP component names to AMP script URLs.
Get data that is returned in validate responses.
Reassemble a style string that can be used in a 'style' attribute.
Parse a style string into an associative array of style attributes.
Set attributes to node's parent element according to layout.
Set AMP attributes.
Get data-amp-* values from the parent node 'figure' added by editor block.
Cleans up artifacts after the removal of an attribute node.
Prepare validation error.
Check whether or not sanitization should occur in response to validation error.
Removes an invalid attribute of a node.
Removes an invalid child of a node.
Check whether a certain node should be exempt from validation.
Check whether a node is exempt from validation during dev mode.
Check whether the document of a given node is in dev mode.
Decide if we should remove a src attribute if https is required.
Adds or appends key and value to list of attributes
Sets the layout, and possibly the 'height' and 'width' attributes.
Determine if an attribute value is empty.
Sanitizes a CSS dimension specifier while being sensitive to dimension context.
Get HTML body as DOMElement from Dom\Document received by the constructor.
Return array of values that would be valid as an HTML
Sanitize the HTML contained in the DOMDocument received by the constructor
Run logic before any sanitizers are run.
Get mapping of HTML selectors to the AMP component selectors which they may be converted into.
Add filters to manipulate output during output buffering before the DOM is constructed.