Detect DOM Element by DOM constructor function instead of XPCOM interface