Removal of comments didn't work. Could drop end tags but have to support
IE8.