我试图在文档开头获取这些行
<!doctype html public "✰">
<!--[if lt IE 7]> <html lang="en-us" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="en-us" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="en-us" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-us" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
....
来自 html5boilerplate。
我怎样才能用打字稿做到这一点?
我试过
config.doctype = html_5
这可以使用干净的元字符,但我不能添加条件
另一方面,有这个选项:http ://typo3.toaster-schwerin.de/typo3_english/2011_03/msg00014.html但后来我失去了“干净”的字符集,并且有了更长更丑的字符集。
我知道这并没有真正的区别,但我希望我能拥有元字符集标签的短版本。
有没有办法拥有这一切?