Drivers kids in car?

Got in the car today. Drivers 1 year old just chilling in the seat next to me. No mention of anything, just playing it cool. In this even legal?

The worst part is the kid filled his pants. So I got to sit next to turds.