Image copyright EPA

Labour's Brexit spokesman has insisted the party could back another referendum that offered voters the chance to stay in the EU.

Sir Keir Starmer said the party was "certainly not ruling out" such a move.

He was speaking after shadow chancellor John McDonnell said he thought any vote should be on the terms of a Brexit deal rather than staying in the EU.

Mr McDonnell later said "all options" were on the table if it came to another referendum.

On Tuesday, Labour's conference in Liverpool will debate and vote on a motion to keep a new referendum "on the table" if Labour is unable to force a general election.

Key delegates - including Sir Keir and leading figures from some trade unions - decided the text at a meeting which lasted several hours on Sunday evening.

The final draft for the vote says: "If we cannot get a general election, Labour must support all options remaining on the table, including campaigning for a public vote."

Since the draft was finalised, key figures have faced questions on whether it will include the option to stay in the EU.

Speaking on BBC Radio 4's Today programme, Mr McDonnell said that Labour would continue to respect the 2016 referendum, in which people voted by 51.9% to 48.1% for the UK to leave the European Union, adding: "If we are going to respect the referendum it will be about the deal."

And he said a general election was needed so a Labour government could strike a Brexit deal with the EU which "brings the country together".

But later, Sir Keir told the BBC the party was deliberately not being "prescriptive" about the question that could be posed in another referendum, saying it was "certainly not ruling out" the option to stay in the EU.

Backbench MP David Lammy, a prominent campaigner for a second referendum, said it would be "farcical" to have a vote without the option of remaining in the EU.

Media playback is unsupported on your device Media caption Labour conference: what do party members want?

After the late-night meeting on Sunday night, a Labour source told the BBC's political editor Laura Kuenssberg: "There was consensus in the room opposing the Tories' chaotic approach to the Brexit negotiations... and that a general election should be called as soon as any deal is voted down by parliament.

"It was then agreed that if we cannot get a general election Labour must support all options remaining on the table, including campaigning for a public vote."

The Labour Party has never formally rejected the option of a so-called people's vote on Brexit, but both Mr Corbyn and his deputy, Tom Watson, have indicated they would prefer it to be resolved by a general election.

On Twitter, Prime Minister Theresa May said Labour's approach sought to "Britain back to square one - betraying all those who voted in the 2016 EU referendum".

Analysis

Image copyright EPA

By Iain Watson, BBC political correspondent

After what I am told was six re-drafts and five and a half hours of discussion, wording that could bridge the gap between campaigners for a new referendum and a reluctant leadership was agreed.

But what was left out of the conference motion is as important as what went in.

The leadership had to agree that wording which restricted a future referendum to "the terms of Brexit" had to go.

This means that the party could, in theory, back a referendum that gave voters the option of remaining in the EU and not just a vote on the final deal.

Campaigners for a new vote see this as significant step forward.

But allies of Jeremy Corbyn say the wording doesn't commit him to backing a referendum as it is still only "an option on the table" if Theresa May refuses calls for a general election.

So still a fudge of sorts - but one with a slightly sweeter taste for supporters of a new vote who firmly believe that "all options" will become their option.

However, even the hint of a new referendum will allow the Conservatives to claim that Labour weren't serious enough about respecting the previous one.

Pressed on the issue on BBC One's Andrew Marr Show on Sunday, Mr Corbyn, who has said he is not calling for another referendum, said "our preference" is for a general election.

He said that would then allow a Labour government to negotiate the UK's future relationship with Europe.

"Let's see what comes out of conference. Obviously I'm bound by the democracy of our party," he added.

Media playback is unsupported on your device Media caption David Lammy: "Can you hear us Jeremy Corbyn?"

Brexit Secretary Dominic Raab ruled out a snap election this autumn, saying the idea was "for the birds".

The UK is due to leave in March 2019 and Theresa May has been negotiating with other EU leaders on the UK's future relationship with the bloc.

Skip Twitter post by @theresa_may Jeremy Corbyn couldn’t rule out a second referendum and today Labour have decided to keep the door open to holding another vote.



This approach would take Britain back to square one – betraying all those who voted in the 2016 EU referendum. #Lab2018 pic.twitter.com/tgQGBEYYlB — Theresa May (@theresa_may) September 24, 2018 Report

Talks hit a stumbling block at a summit in Salzburg on Thursday when EU leaders rejected Mrs May's plan for Brexit - known as the Chequers agreement, and she warned them she was ready to walk away rather than accept a "bad deal".

What the Labour wrangling means

By Newsnight political editor Nick Watt

The wrangling has led to much soul searching in the new Labour movement taking shape under Jeremy Corbyn's leadership. The Momentum group, established to shore up his leadership at the grassroots, has been torn between pro-European instincts and loyalty to Corbyn.

He is heir to the Bennite tradition which regards the founding principles of the EU as anathema to Socialism.

Momentum was thinking of taking a neutral position had the motion been difficult for Jeremy Corbyn. One Momentum source told me that, while the organisation is strongly pro-European, it would do nothing to jeopardise its main goal; the election of a truly Socialist government.

The People's Vote campaign are reasonably content. They know their greatest weakness in Liverpool is they are seen as a bunch of unreconstructed Blairites seeking to thwart the will of the people on the EU and undermine Corbyn in the bargain.

The campaign believe they have shown they have far wider support. They hope to have created a space in November for Labour to be able to endorse a referendum on the grounds that warring Conservative MPs agree on one thing - there must be no general election before 2022.

Read more from Nick