Remove unnecessary attributes in HTML5