diff --git a/lib/DOM/Element.php b/lib/DOM/Element.php index 14f45da..2ddc432 100644 --- a/lib/DOM/Element.php +++ b/lib/DOM/Element.php @@ -118,7 +118,7 @@ class Element extends \DOMElement { $this->ownerDocument->removeChild($this); } $a->value = $this->escapeString($value, true); - $this->appendChild($a); + $this->setAttributeNodeNS($a); } else { try { parent::setAttributeNS($namespaceURI, $qualifiedName, $value);