Thanks, I filed a bug and attached the patch, http://dev.jquery.com/ticket/5022
On Aug 6, 11:43 am, John Resig <jere...@gmail.com> wrote: > Yeah, file a bug and attach the patch and I can look in to it. > > --John > > On Thu, Aug 6, 2009 at 2:08 PM, Jack Bates <jack.ba...@gmail.com> wrote: > > > $('<div>foo</div>') doesn't work when the content type is 'application/ > > xml'. I guess this is because an XML DOM doesn't support innerHTML()? > > > One might use the content type 'application/xml', for example to > > include inline SVG > > > Here's an example of $('<div>foo</div>') not working, > >http://www.sfu.ca/~jdbates/tmp/jquery/200908060/a/index.xml<http://www.sfu.ca/%7Ejdbates/tmp/jquery/200908060/a/index.xml> > > > Here's a naive patch to make $('<div>foo</div>') work even when the > > content type is 'application/xml', > >http://www.sfu.ca/~jdbates/tmp/jquery/200908060/patch<http://www.sfu.ca/%7Ejdbates/tmp/jquery/200908060/patch> > > > And here's the same example, but using a patched jquery-nightly.js and > > working,http://www.sfu.ca/~jdbates/tmp/jquery/200908060/b/index.xml<http://www.sfu.ca/%7Ejdbates/tmp/jquery/200908060/b/index.xml> > > > Is a patch like this welcome? May I open a ticket? --~--~---------~--~----~------------~-------~--~----~ 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 jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---