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

(DOMElement) (Required) Represents an HTML element.

$attributes

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



Changelog #

Changelog
Version Description
0.2 Introduced.