<!--[if lt IE 7]> <body class="ie ie6 lte9 lte8 lte7"> <![endif]--> <!--[if IE 7]> <body class="ie ie7 lte9 lte8 lte7"> <![endif]--> <!--[if IE 8]> <body class="ie ie8 lte9 lte8"> <![endif]--> <!--[if IE 9]> <body class="ie ie9 lte9"> <![endif]--> <!--[if gt IE 9]> <body> <![endif]--> <!--[if !IE]><!--> <body> <!--<![endif]-->
Thing is, when registering client scripts at the beginning of the body, Yii goes for the first body tag instead of the right body tag.
Yii::app()->clientScript->registerScript('myScript','// ...',CClientScript::POS_BEGIN)Yields this in non-IE browsers:
<!--[if lt IE 7]> <body class="ie ie6 lte9 lte8 lte7"><script type="text/javascript"> /*<![CDATA[*/ // ... /*]]>*/ </script> <![endif]--> <!--[if IE 7]> <body class="ie ie7 lte9 lte8 lte7"> <![endif]--> <!--[if IE 8]> <body class="ie ie8 lte9 lte8"> <![endif]--> <!--[if IE 9]> <body class="ie ie9 lte9"> <![endif]--> <!--[if gt IE 9]> <body> <![endif]--> <!--[if !IE]><!--> <body> <!--<![endif]-->
My request is for having Yii detect the right body tag, since this would mean I would not need to grab an extension to address this issue.

Help












