Don't rely on node.contains if it doesn't exist (IE)