DOMDocument->importNode with seconds argument false will leave attributes behind. To fix this:
$__DOM->importNode
(
$__INPUT->cloneNode(false), true
);
$__DOM (DOMDocument) will import the $__INPUT node (DOMElement) INCLUDING attributes.
DOMDocument->importNode with seconds argument false will leave attributes behind. To fix this:
$__DOM->importNode
(
$__INPUT->cloneNode(false), true
);
$__DOM (DOMDocument) will import the $__INPUT node (DOMElement) INCLUDING attributes.