You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect that this prints two times 1 to the console, which it does in Firefox and Chrome. In Internet Explorer (I've tested 7 & 8) it will print 1 and then 0 though, indicating that the element has somehow been emptied somewhere during starting up test yadda. If I reinforce $elem by putting $elem = $('#main > ul'); in a module setup function, the problem miraculously disappears.
The text was updated successfully, but these errors were encountered:
Elements inside the #main element get reset after each test run. The inconsistency across browsers is odd, but fine, as you should rely on any selection that ran outside your current test.
Consider a test page with a main section as follows:
And a test script as follows:
One would expect that this prints two times
1
to the console, which it does in Firefox and Chrome. In Internet Explorer (I've tested 7 & 8) it will print1
and then0
though, indicating that the element has somehow been emptied somewhere during starting up testyadda
. If I reinforce$elem
by putting$elem = $('#main > ul');
in a module setup function, the problem miraculously disappears.The text was updated successfully, but these errors were encountered: