Detect DOM instances without XPCOM interface