AMP_DOM_Utils::add_attributes_to_node

AMP_DOM_Utils::add_attributes_to_node( DOMElement $node,  string[] $attributes )

Description #

Add one or more HTML element attributes to a node's DOMElement.


Parameters #

$node

(Required) Represents an HTML element.

$attributes

(Required) One or more attributes for the node's HTML element.



Changelog #

Changelog
Version Description
0.2 Introduced.