It seems like the browser conditionals:
drupal_add_js(drupal_get_path('module', 'cufon') . '/js/cufon-drupal.js',
array('group' => JS_THEME, 'browsers' => array('IE' => 'gte IE 9', '!IE' => TRUE),
'weight' => 999, 'preprocess' => FALSE));
included in template.php (or a module) are not working due to the fact browsers
option is supported for drupal_add_css()
but not for drupal_add_js()
.
Can one state a not-hackish/patchy solution to exclude this file cufon-drupal.js
on older browsers?
A solution like
<!--[if gte IE 9]>
<script src='<?php drupal_add_js(drupal_get_path('module', 'cufon') . '/js/cufon-drupal.js'); ?>'>
</script><![endif]-->
in html.tpl.php is not working.