Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When loading content through ajax in Internet Explorer, the new html5 elements are not recognized / processed with the html5shiv thingie.
I've used innershiv to mitigate my issue, with the following example code. Maybe this is usefull for omega?
(btw, I've peeked into zen theme and borrowed their solution ;))
in html.tpl.php:
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="/path/to/theme/js/innershiv.js"></script>
<script type="text/javascript">
// Monkeypatch the innerShiv in the ajax insert method.
(function(){if(Drupal.ajax){var _insert=Drupal.ajax.prototype.commands.insert;Drupal.ajax.prototype.commands.insert=function(ajax,response,status){response.data=innerShiv(response.data,false);_insert(ajax,response,status);}}})();
</script>
<![endif]-->
Comments
Comment #1
thijsvdanker CreditAttribution: thijsvdanker commentedOh and a link to innershiv: http://jdbartlett.com/innershiv/
Comment #2
Cellar Door CreditAttribution: Cellar Door commentedWhat do you think Himerus - add to 3.2.x?