*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HtmlSanitizer\Node;
/**
* Root node of the sanitized HTML. Contains all the other nodes.
*
* @author Titouan Galopin
*
* @internal
*/
class DocumentNode implements NodeInterface
{
use HasChildrenTrait;
public function getParent(): ?NodeInterface
{
return null;
}
public function render(): string
{
return $this->renderChildren();
}
}