Maintain document type on result html