$(req.responseText).html() can return empty string

$(req.responseText).html() can return empty string


Anyone experience this before? Only happens in Firefox (tested with
3), Internet Explorer is fine.
I use ajaxError to alert a message when there is a server side error
that isn't caught properly (ASP.NET). It is a full html document,
which is auto generated (no control over it).
Problem is, sometimes the response can be long (15kb +) and it
prevents .html() returning the html in Firefox. e.g.
$("body").ajaxError( function(e, req, settings) {
var $response = $(req.responseText);
console.log($response.find("code"));
console.log($response.find("code").html());
});
The first console.log shows the object in the console containing the
element I want, but it has no content (which the html from the server
does).
Anyone else have / able to replicate this problem?
Thanks,
-Sam