IE7 Question

IE7 Question

In IE7 the first alert shows all of the data.

The second alert shows up empty.

function handleLoading(data) {
   alert(data);
   var $content = $("<div></div>").html(data);   
   alert($content.html());
   
        ...
}


This works fine in FF3.5 & Chrome.

Any guess what's happening and how to fix it?

Here's more of the code in case that helps...

function handleLoading(data) {
      alert(data);
      var $content = $("<div></div>").html(data);
      alert($content.html());
      
      var $visualBadge = $("#visualBadge");
      $visualBadge.html($content.html())
      $visualBadge.find("a").click(handleClick);
   }
   
   function handleClick(evt) {
      var link = this;      
      var path = link.href;
      if(path.indexOf("#") != (path.length-1)){
         $.get(link.href, handleLoading);
         evt.preventDefault();
         return false;
      }
   }