HTML5 syntax validation fixes