AMP_DOM_Utils::has_class( DOMElement $element, string $class )
Description #
Check whether a given element has a specific class.
Parameters #
- $element
-
(Required) Element to check the classes of.
- $class
-
(Required) Class to check for.
AMP_DOM_Utils::has_class( DOMElement $element, string $class )
Check whether a given element has a specific class.
(Required) Element to check the classes of.
(Required) Class to check for.