Fixed a few HTML5 compliance issues