DOM.isElement works in Safari as well