AMP_DOM_Utils::has_class

AMP_DOM_Utils::has_class( DOMElement $element,  string $class )

Description #

Check whether a given element has a specific class.


Parameters #

$element

(DOMElement) (Required) Element to check the classes of.

$class

(string) (Required) Class to check for.


Return #

(bool) Whether the element has the requested class.


Changelog #

Changelog
Version Description
1.4.0 Introduced.