|
@ -21,6 +21,9 @@ class Element extends \DOMElement { |
|
|
$name = $this->coerceName($name); |
|
|
$name = $this->coerceName($name); |
|
|
parent::setAttribute($name, $value); |
|
|
parent::setAttribute($name, $value); |
|
|
} |
|
|
} |
|
|
|
|
|
if ($name === "id") { |
|
|
|
|
|
$this->setIdAttribute($name, true); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setAttributeNS($namespaceURI, $qualifiedName, $value) { |
|
|
public function setAttributeNS($namespaceURI, $qualifiedName, $value) { |
|
@ -34,6 +37,9 @@ class Element extends \DOMElement { |
|
|
$qualifiedName = $this->coerceName($qualifiedName); |
|
|
$qualifiedName = $this->coerceName($qualifiedName); |
|
|
parent::setAttributeNS($namespaceURI, $qualifiedName, $value); |
|
|
parent::setAttributeNS($namespaceURI, $qualifiedName, $value); |
|
|
} |
|
|
} |
|
|
|
|
|
if ($qualifiedName === "id" && $namespaceURI === null) { |
|
|
|
|
|
$this->setIdAttribute($qualifiedName, true); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function __get(string $prop) { |
|
|
public function __get(string $prop) { |
|
|