During the third GOP debate, candidates got feisty with the CNBC moderators. They took aim at the questions asked, at the "mainstream media" and at the moderators interrupting their answers. (Victoria M. Walker/The Washington Post)

Donald Trump and the other presidential candidates in Wednesday night's primary debate have spent a fair amount of time blaming the media for misrepresenting their positions.

Trump, though, appeared to contradict his campaign's own published white paper on immigration with his statements on visas for skilled immigrants -- the controversial H-1B program, as its known.

The document from Trump's campaign, published in August, offers several proposals to restrict H-1B visas. For example, if elected president, Trump would seek to require American firms to hire American workers before applying for an H-1B visa for a foreign worker, according to the document.

The document also describes Sen. Marco Rubio (R-Fla.), one of Trump's rivals on CNBC's stage, as "Mark Zuckerberg's personal senator." Rubio has advocated for expanding the H-1B program. Critics say that doing so would reduce wages in the technology sector by forcing American workers to compete with a larger group of immigrants for work, increasing profits for the owners of technology firms.

On stage, though, Trump praised the H-1B program.

"I am all in favor of keeping these talented people here, so they can go to work in Silicon Valley," Trump said.

When asked about the jab at Rubio, he denied having said anything of the kind. While it is perhaps technically true that Trump never spoke those words, they are contained in a document published by his campaign.