Node templateAwareRoot(Element el)

Source

Node templateAwareRoot(Element el) => el is TemplateElement ? el.content : el;