After Rodrigo's deflected strike put Leeds ahead inside fifteen minutes, the Whites squandered bags of strong chances to extend their lead.
Kenny McLean looked to have rescued a point for the visitors with moments left to play as he poked home a Teemu Pukki cross, but 19-year-old substitute Joe Gelhardt had the final say in injury time.
The victory took the fifth-bottom Whites four points clear of the Premier League drop zone with nine games left, although second-bottom Burnley who are five points adrift have two games in hand.
Graham Smyth, the YEP's chief football writer, hands out the scores from Sunday afternoon's epic clash at Elland Road.
The victory took the fifth-bottom Whites four points clear of the Premier League drop zone with nine games left, although second-bottom Burnley who are five points adrift have two games in hand.