DomNode.parentOrHost

auto parentOrHost(this This)() @nogc nothrow pure @safe

The parent, or the <template> for the nodes of a template content