How to use HTML5shiv with ajax call data results

I am making an ajax call like this:

$.ajax({
          type: "POST",
      url: action,
      cache:false,
      success: function(data){

                  alert($(data).find("*").html());

    }

});

      

all browsers (except IE 8 and 7) correctly display the warning I entered in SUCCESS. in IE I get "undefined".

the data contains some HTML5 tags and I know that it doesn't work for this reason.

I already put HTML5shiv in my header, but it works for normal pages and not for ajax calls.

How can I call HTML5shiv on my "data"?

I've already tried using innerShiv, but the author says it is no longer recommended as html5shiv now fixes the innerHTML issue ( http://jdbartlett.com/innershiv/ )

Thanks a lot, I'm going crazy with this problem ...

+3


source to share