May work, too. Haven't tried. I just had to find a quick solution so I quickly searched for an 1:1 replacement of instanceof HTMLElement.