removing non html5 compliant attributes