[TYPO3-english] HTML5 Boilerplate with TYPO3

Martin Mädler martin.maedler at rwth-aachen.de
Tue Mar 1 13:00:52 CET 2011


Hi, has anyone tried to use the HTML5 Boilerplate? 
https://github.com/paulirish/html5-boilerplate/blob/master/index.html
There are a few problem I have run into, which I could resolve by 
editing a few TYPO3 source files directly. However, I wonder if there is 
a more elegant way to address this. I am new to TYPO3.

I figured the HTML5 doctype can be set easily via Typoscript but my 
first issue is the html-opening-tag, which is kind of embedded in this 
struct of conditional comments:

<!-- 
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> 
<!--<![endif]-->

Any ideas on how to do this via Typoscript or something? The lang 
attribute has to be dynamic.

Another thing is this meta-tag:

<!-- Always force latest IE rendering engine (even in intranet) & Chrome 
Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

which optimally has to come right after the charset definition i.e 
before the title tag and the "powered by TYPO3" html comment, because it 
can only be invoked for Chrome Frame if it is withing the first 1024 bytes.
Should I use something like config.disableAllHeaderCode=1 and write the 
header myself?

Thanks for your help.
Martin


More information about the TYPO3-english mailing list