Detect DOM something by DOM constructor instead of XPCOM interface