One may rely lechatchila on a Jew's tasting of an onion cut with a knife, to eat it with dairy, as Maran rules in the Shulchan Aruch, following the Rashba. The Shach permitted only bediavad; the Pri Chadash and Kol Eliyahu rejected that, and even Ashkenazim may be lenient, as is clear from the Rema.