Active
Project:
Omega
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Nov 2011 at 16:54 UTC
Updated:
6 Jul 2012 at 23:52 UTC
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 commentedOh and a link to innershiv: http://jdbartlett.com/innershiv/
Comment #2
cellar door commentedWhat do you think Himerus - add to 3.2.x?