Home Depot narrowed its earnings and revenue outlook for the year after it beat expectations on both metrics in the third quarter.