I'd like to use Selectivizr script to emulate CSS3 selectors in IE6-8.
But I'm having a hard time adding it to my theme. So far tried:
1) Forcing this into html.tpl.php head section:
<!--[if lt IE 9]> <script src="<?php print base_path() . path_to_theme(); ?>/js/selectivizr.js"></script> <![endif]-->
But base_path() doesn't seem to return anything in D7 (at least in html.tpl.php - maybe in page.tpl.php...). And I know this isn't the Drupal way to do it anyway.
2) Adding to my theme's .info file:
scripts = selectivizr.js
But then it's unconditional, of course :(
3) Using drupal_add_js() in my template.php.
But again, I'm not sure that it can be set conditionally there?