jasmine.JQuery.elementToString reloads <script> tags #28

Closed
gfredericks opened this Issue Jul 17, 2011 · 2 comments

2 participants

@gfredericks

The $("<div />").append(...) tactic used in jasmine.JQuery.elementToString will cause any <script> tags that happened to have been matched to be reloaded by the browser.

The reason a <script> tag may have been matched is that the <html> tag may have been matched, for example:

expect($(":contains(foo)")).toBeVisible()
@gfredericks

If nothing else, I expect this would be satisfactory:

HSSC/jasmine-jquery@d9abf70

@travisjeffery
Collaborator

Can you make some tests please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment