Stocks pulled back fractionally as a late-day selloff prevented another record day for the Dow, while the Nasdaq and S&P 500 finished slightly lower as well.

Technology shares climbed higher Wednesday, but weakness in retail, energy and drug stocks more than offset tech gains. Gaining shares outpaced losers on the New York Stock Exchange by 9 to 7, but transportation bellwether FedEx dragged on the Dow as the company presented a cloudy outlook for its fiscal third quarter that overshadowed improved second-quarter profits.