If I had to guess as to what the problem was, I'd say it's the two extra HTML comments dangling off the end of the document (!?). Thus jQuery is probably trying to find elements within the comments, which doesn't work. Unfortunately I don't think it's possible to put this through an XML parser, either, since I don't think you can have comments outside of the root element (correct me if I'm wrong here).
--John On Fri, Oct 24, 2008 at 9:08 AM, Sam Collett <[EMAIL PROTECTED]> wrote: > > Only just managed to get around to creating a test case: > http://www.texotela.co.uk/ajaxerror.php > > HTML is sent as text/html, but no DOCTYPE . > > John Resig wrote: > > Could you save the output as an HTML file? And then make another file > > that tries to load it? That might be able to point us in the right > > direction, at least. > > > > --John > > > > > > > > On Thu, Oct 2, 2008 at 3:18 PM, Sam Collett <[EMAIL PROTECTED]> > wrote: > > > > > > Not something I can replicate at the moment (no access to an ASP.NET > > > site currently), but it is the result of when an exception occurs and > > > isn't handled. > > > > > > Sample page (i.e. test.aspx), save and run on ASP.NET capable server > > > (that hasn't got friendly error messages enabled). > > > > > > <%@ Page Language="C#"%> > > > <script runat="server"> > > > public void Page_Load(object sender, EventArgs e) > > > { > > > int canCauseException = int.Parse(null); > > > } > > > </script> > > > > > > - Sam > > > > > > On Oct 2, 5:46 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > > >> Do you have a sample page up? It's possible that the specific input > may > > >> cause this effect. > > >> > > >> --John > > >> > > >> On Thu, Oct 2, 2008 at 12:29 PM, Sam Collett <[EMAIL PROTECTED]> > wrote: > > >> > > >> > 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 > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---