In the United States, the two major parties were divided on the acquisition of the Philippines, which became a major campaign issue in 1900. The Republicans, who favored permanent acquisition, won the election, but after a decade or so, Republicans turned their attention to the Caribbean, focusing on building the Panama Canal. President Woodrow Wilson, a Democrat in office from 1913 to 1921, ignored the Philippines, and focused his attention on Mexico and Caribbean nations. By the 1920s, the peaceful efforts by the Filipino leadership to pursue independence proved convincing. When the Democrats returned to power in 1933, they worked with the Filipinos to plan a smooth transition to independence. It was scheduled for 1946 by Tydings–McDuffie Act of 1934. In 1935, the Philippines transitioned out of territorial status, controlled by an appointed governor, to the semi-independent status of the Commonwealth of the Philippines. Its constitutional convention wrote a new constitution, which was approved by Washington and went into effect, with an elected governor Manuel L. Quezon and legislature. Foreign Affairs remained under American control. The Philippines built up a new army, under general Douglas MacArthur, who took leave from his U.S. Army position to take command of the new army reporting to Quezon. The Japanese occupation 1942 to 1945 disrupted but did not delay the transition. It took place on schedule in 1946 as Manuel Roxas took office as president.