using Node interface instead of HTMLElement, conditional render "when"