Would a candidate for president of the United States ever officially condone a riot on the floor of a national convention? Would a candidate actually ever seek to provoke one? Should delegates at a convention be permitted to carry guns? Can supporters of a candidate try to buy delegate votes? Could any of these things happen at a contested Republican Convention this year in Cleveland?

It seems unlikely, but there would be precedents. Amazingly, in 1912, when Theodore Roosevelt tried to wrest the nomination from William Howard Taft, there were plans for riots, plenty of guns, and more than a few attempted and perhaps actual bribes.

Even though he had groomed Taft as his handpicked successor in 1908—describing him as the most lovable man he knew—Roosevelt decided to come out of retirement in 1912 and challenge the sitting president for the Republican nomination. Up to then, delegates to national conventions were picked by party leaders, but when it became clear that he could not win over the men who controlled the party machinery, Roosevelt embraced a new idea: presidential primaries. His campaign theme became: “Let the people rule.” There were 13 primaries that year, and when Roosevelt won nine of them and 70 percent of the elected delegates, he claimed to have right to the nomination. But most of those delegates had been picked in the old-fashioned way. So when Taft’s supporters used the power of his incumbency to pressure delegates and control the proceedings, Roosevelt—or men acting in his name—resorted to more creative and belligerent tactics.

Some of those same themes have been in the news this year.

When Donald Trump told CNN, “I think you’d have riots,” if the Republican Party’s leaders denied him the nomination, people were understandably disturbed. But on the eve of the 1912 convention, Roosevelt told his nephew that his supporters were prepared to “use roughhouse tactics” to “terrorize” the party’s leaders if they denied him the nomination. His delegates included men who were used to barroom brawls, including several who had been with his Rough Rider brigade in the Spanish American War. When the proceedings started, Roosevelt’s managers flooded the Chicago Convention Center bleachers with rugged supporters who were prepared to use their voices and even their fists to fight for their demand that Roosevelt be selected.

In a plan hatched by some of Roosevelt’s more aggressive supporters, Roosevelt’s floor manager, Missouri Governor Herbert Hadley, was supposed to shout out an appeal to the convention chair’s rulings. According to the plan, that would be a signal to Roosevelt’s supporters to start a massive demonstration—hopefully one that could only be stopped by the police, probably with bloodshed.

And the police, as the slightly cheeky American Magazine observed, were everywhere:

Not since the Haymarket Riot have so many members of this fine body of constabulary been gathered in one place. They were in the galleries; they patrolled the aisles and mingled with the delegates, scrutinizing them with the familiar expression they wear when elbowing through a crowd of hoodlums and trying to ‘spot’ those who are ‘liable to start something’; in the passageways there were scores of them, actually, and this is no exaggeration, crouched along the walls ready to spring with club and pistol in hand upon this historical deliberative assemblage.

Once the police had attacked the Roosevelt boosters—and perhaps done so rather brutally—in front of the world’s press, the strategy called for Roosevelt’s supporters to walk out of the hall and hold their own convention, where they would claim to be the true Republican Party. It was the kind of tactic that they had used—and used effectively—earlier at state conventions in Michigan, Washington, and elsewhere.

But the plan was never executed. At the last moment, Hadley decided not to give the signal for the demonstration. Remembering those events a decade later, he recalled that he had made the unilateral decision not to “resort to rough stuff,” because he was convinced that with so many police guarding the hall, there would be too much bloodshed. In his words, Roosevelt’s supporters “would have been badly worsted.” That led some of Roosevelt’s supporters, including California Governor Hiram Johnson, to accuse Hadley of cowardice. After the convention, Johnson berated “the timid and shrinking” men who had viewed “with such horror” the proposal to seize control of the convention by force.

This year, when an online petition proposed that delegates be allowed to enter the Cleveland Convention with guns, the Secret Service promptly—and properly—shut the idea down. “Only authorized law enforcement personnel working in conjunction with the Secret Service for a particular event,” they held, “may carry a firearm inside of the protected site.”

But at state conventions throughout 1912, guns were everywhere. In one of the Roosevelt campaign’s early success stories, his forces won most of the delegates from Oklahoma by using strategies that were straight out of the Wild West. Franklin Knox, who later became Franklin Roosevelt’s secretary of the Navy, described the scene:

Our fellows put up a great fight lasting all day and until four in the morning. One man dropped dead and two or three were carried out unconscious. The state chairman, Harris, a Taft man, was told if he tried to put over any crooked deals from the chair that he wouldn’t get out of the hall alive. Feelings ran so high that gun-play was expected. Indeed, I am told that one of Roosevelt’s men stood behind Harris with his hand on his gun ready for an emergency.

How about bribery? “Buying votes is illegal,” CNN recently reported, “but, it turns out, buying delegates might not be.” The network then quoted Trump senior adviser Barry Bennett saying, “There’s obviously a big line: We’re not going to do anything immoral, illegal, or unethical.”

Those lines were not so clear in 1912.

For Roosevelt to seize the nomination from Taft, about 50 delegates would have to change sides. Most of the public attention focused on a series of challenges to delegate credentials, but in fact Roosevelt’s campaign had a very different path to victory in mind. There were about 68 black delegates from the Deep South. Virtually all of them had been nominated at Taft-controlled conventions, but they were legally free to support Roosevelt. “The hopes of the Roosevelt managers for controlling the convention,” reported The New York Times on June 16, “rest today more strongly than anything else on their hopes of winning over enough of the Taft negro delegates from the South to make up the deficit that still separates them from a majority.”

Both campaigns subsequently released affidavits from black delegates claiming that they had been offered bribes, some as large as $1,000, which today would be equivalent to about $25,000. A great deal of contemporary evidence demonstrates that most of the offers came from Roosevelt’s camp, though it is possible that Roosevelt never knew what was being done in his name. “I never told Roosevelt about this strange little backwater in the river of righteousness on which the progressive craft was sailing so gallantly,” one of his campaign leaders later explained, “and I doubt that he ever knew of it.”

Roosevelt’s gambits didn’t work, of course, and he walked out of the convention to start a new party.

As Americans prepare for the possibility of another contested convention, it is at least comforting to know that the nation has lived through—and triumphed—during some equally rough-and-tumble times.