YouTube movie validation with fullscreen option?

I’ve been told that YouTube movies fail validation if embedded using the code provided. I’ve also read that there’s a way around the validation issue by using code that removes the <embed> property, something like -

<object type=“application/x-shockwave-flash” width=“300” height=“231” data=“[video details here]”>
<param name=“movie” value=“[video details here]” /></object>

When I tried this method, however, the fullscreen button on the YouTube video no longer functioned. This is obviously a big drawback.

Is there any way of adding a YouTube video to a webpage in such a way that it passes validation and can be resized to fullscreen using the YouTube controls?