We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e52ca8 commit 66e3dd2Copy full SHA for 66e3dd2
src/Attribute.php
@@ -108,7 +108,7 @@ public function toXML(DOMElement $parent): DOMElement
108
{
109
$parent->setAttributeNS(
110
$this->getNamespaceURI(),
111
- ($this->getNamespacePrefix() !== '')
+ !in_array($this->getNamespacePrefix(), ['', null])
112
? ($this->getNamespacePrefix() . ':' . $this->getAttrName())
113
: $this->getAttrName(),
114
$this->getAttrValue(),
0 commit comments