I'm trying to GET an HTML document using the jQuery ajax() method.
When I try and parse the returned data using $(data) all browsers other than IE are returning a DOM element, where as IE is returning NULL.
I've checked 'data' and it's a string as expected.
Any ideas what might cause this? I'm guessing it could be errors in the markup being pulled in, but I can't spot anything in the validation?
I'm using jQuery 1.4.2.
jQuery.ajax({
url: url,
cache: false,
contentType: 'html',
processData: false,
success: function(data) {
console.log($(data));
}
});
Thanks in advance.