appendChild($d->createElement('html')); // Node::body without body $this->assertNull($d->body); $body = $d->documentElement->appendChild($d->createElement('body')); // Node::body with body $this->assertSame($body, $d->body); } }