How to make player code validate on W3C? Posted in on July 12, 2012 by admin W3C will throw error for iframes, so you need to use object tags in place of iframe tags. <?php if($matches[1][0]==”full”) { $replace = ‘<object data=”https://www.svnlabs.com/html5/html5full.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”606″ height=”230″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 606px; height: 230px;”></object>’; } else if($matches[1][0]==”big”) { $replace = ‘<object data=”https://www.svnlabs.com/html5/html5big.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”386″ height=”434″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 386px; height: 434px;”></object>’; } else { $replace = ‘<object data=”https://www.svnlabs.com/html5/html5small.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”386″ height=”230″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 386px; height: 230px;”></object>’; } if($matches[1][0]==”full”) { $replace = ‘<iframe src=”https://www.svnlabs.com/html5/html5full.php?id=’.$matches[2][0].'” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”566″ height=”207″></iframe>’; } else if($matches[1][0]==”big”) { $replace = ‘<iframe src=”https://www.svnlabs.com/html5/html5big.php?id=’.$matches[2][0].'” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”347″ height=”414″></iframe>’; } else { $replace = ‘<iframe src=”https://www.svnlabs.com/html5/html5small.php?id=’.$matches[2][0].'” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”347″ height=”207″></iframe>’; } ?> Posted in: HTML5, Joomla, WordPress ← Problem downloading MP3 files using HMTL5 MP3 Plugin? Plugin Forums? →