I've got the following <apex:page>
tag in a Visualforce page:
<apex:page docType="html-5.0" showHeader="false" applyHtmlTag="false" applyBodyTag="false" standardStylesheets="false" expires="900" controller="CensoredController">
<html> ...stuff... </html>
</apex:page>
This generates the correct HTML5 doctype I need. And while there's no newline or whitespace before it, somehow Salesforce adds a newline before the HTML5 doctype.
How do I get rid of all the whitespace before the doctype?
Any whitespace (newline/spaces/tabs) put old Internet Explorers in quirksmode, and while I know of the X-UA-Compatible header, I still would like to remove the whitespace as well.
I would imagine in the JSP-world, this would accomplish what I want:
<%@ page trimDirectiveWhitespaces="true" %>