HTML5 conformity fixes