', 'UTF-8'); $body = $d->body; $body->setAttributeNS(Node::XMLNS_NAMESPACE, 'xmlns:href', Node::HTML_NAMESPACE); $body->setAttributeNS('https://poop💩.poop', 'poop💩:poop💩', 'poop💩'); $attributes = $body->attributes; $this->assertSame('ook', $attributes['a']->value); $this->assertSame(Node::HTML_NAMESPACE, $attributes['xmlns:href']->value); $this->assertSame('poop💩', $attributes['poop💩:poop💩']->value); } }