check if node factory is dom