HTML5 validity fixes