AMP_DOM_Utils::get_node_attributes_as_assoc_array

AMP_DOM_Utils::get_node_attributes_as_assoc_array( DOMElement $node )

Description #

Extract a DOMElement node's HTML element attributes and return as an array.


Parameters #

$node

(Required) Represents an HTML element for which to extract attributes.


Return #

(string[]) The attributes for the passed node, or an empty array if it has no attributes.


Changelog #

Changelog
Version Description
0.2 Introduced.