Html5 content not created in JavascriptMVC + Modernizr

I am using Modernizr and JavascriptMVC.

Modernizr is in the main section.

<script src="./resources/js/modernizr-1.6.min.js"></script>

And steal before closing the body:

<script type='text/javascript' src='../steal/steal.js?formcms,development'></script>

When I add the contents of html5 to the controller as follows: $('body').append(this.view('header'))

This is not a style.

Is there a solution for html5 style elements after adding them in a view in JavascriptMVC? I am using IE6.

+4
source share
1 answer

Use innerShiv .

 <script src="http://jdbartlett.github.com/innershiv/innershiv.js" type="text/javascript"></script> 

then

 $('body').append(innerShiv(this.view('header'))); 
+2
source

Source: https://habr.com/ru/post/1334392/


All Articles