assaf/zombie — Issue #286: Problem with AJAX response and jQuery string to DOM
Author: pstadler
Created: 2012-02-24 10:48:53+00:00
State: open

Hi. First of all I'd like to thank you for this awesome library!

I've a problem with jQuery (external) and AJAX responses.

I execute `browser.clickLink` within a test. This triggers an AJAX call (everything is handled by the JS I load on the target page) which responds with an html string including html, head and body tags.

Then, when i try to create a DOM tree out of this data, using `$()`, it simply ignores the body tag and its content. This doesn't happen if the html string is just a partial but not a full (valid) HTML page.

I would really appreciate any help regarding this problem.