Where is the best place to add the following:
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
I've attempted to add it into a HTML Tag Code webpart although it places the code after
<html and before the closing
>. So not ideal really. I've also attempted to simply set the class="" attribute with no success using that webpart.
So now I've modified the /CMSPages/PortalTemplate.aspx page and added the following:
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html <%=XmlNamespace%> class="no-js" lang="en"> <!--<![endif]-->
And it seems to work but how do I get the XmlNamespace property to work with all the other conditions?