Put meta tag on top of header section in typo3

meta-tags, quirks-mode, typo3, typoscript

Solution

You can write the whole header by yourself, by adding `disableAllHeaderCode = 1` to your typoscript or you can hack it by adding your meta tag directly to the head tag: `page.headTag = <head><meta http-equiv="X-UA-Compatible" content="IE=edge" />`

Problem

In order to prevent quirks mode in IE9 I need to add this lines at the very top of every HTML page: ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> ``` Unfortunately typo3 moves the `<meta http-equiv ...` line to the end of the header section, making it useless. How can I tell tyop3 to place the meta tag entry immeditely after the header tag?

Original source