Rep. Jackie Speier, D-Calif., broke ranks with Democratic leaders on Thursday and said she is willing to work with President Trump and congressional Republicans on legalizing the Deferred Action for Childhood Arrivals program in return for border wall funding.

"I’m willing to go, you know, midway with the president and the Republicans to fund higher-tech walls along our border, more border security, enhanced measures, but I really feel very strongly that our DACA kids need to be protected," Speier told MSNBC host Craig Melvin, who seemed stunned by the statement.

"To be clear, I want to clarify. You are okay with giving the president his wall in exchange for DACA?" Melvin asked.

"I would be willing to give the president a high-tech wall, willing to give him some amount of money to build his wall to a certain degree," Speier said.

Democrats have publicly opposed funding Trump's campaign promise to build a border wall, but Republicans are pushing them to agree to it as part of a bill that would include language protecting Dreamers, who are about to lose their protection under the Obama-era Deferred Action on Childhood Arrivals program. Trump has said DACA would be rescinded in March, but has said he would agree to sign legislation recreating the program that also includes border security measures.