The convention unanimously nominated Van Buren, and chose Charles Francis Adams as Van Buren's running mate. In a public message accepting the nomination, Van Buren gave his full support for the Wilmot Proviso, a proposed law that would ban slavery in all territories acquired from Mexico in the Mexican–American War. Van Buren won no electoral votes, but finished second to Whig nominee Zachary Taylor in New York, taking enough votes from Cass to give the state—and perhaps the election—to Taylor. Nationwide, Van Buren won 10.1% of the popular vote, the strongest showing by a third party presidential nominee up to that point in U.S. history.