Not a problem, but a question to upgrade my knowledge :
<script type="text/javascript">
$(document).ready(function(){
if (jQuery.browser.msie)
{
//If js is not active we couldn't launch html5 compat script.
//So we won't bother with conditionnal comments, slowing down engine rendering
$.getScript("<?php bloginfo('template_url'); ?>/js/html5-ie.js");
//No feature detection required, so we do the usual basic trick
var ieVersion = 'ie'+parseInt(jQuery.browser.version, 10);
$('body').addClass(ieVersion);
}
});
</script>
Why is this snippet not working under IE6 ?
Works fine (even if I don't use it) under FF, but IE just won't do the job. Don't bother telling me I should use feature detection, it's all about css here, no javascript 'triggering'.