cross browser fix for getSingleNode