Do Google Bots Care About Invalid HTML

Searching through youTube, you know how good they are suggesting videos, I ran across this short and helpful snippet about the logic google uses to handle invalid HTML markup on the web and weather or not the google bot penalizes your site for the mistakes.