XML namespaces of elements without attributes are sometimes omitted upon rendering
XMLElement->Render checks if $this->attributes
is an array (here: https://gitlab.com/davical-project/awl/blob/master/inc/XMLElement.php#L311).
If this fails, the xmlns is missing from the output.
The reason this may fail is because the constructor sets $this->attributes
to false
instead of array()
.
Note that this also may cause GetAttributes() to return false
, in violation of its signature.