Repairing HTML5 validation errors