New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch support tests to use document.documentElement instead of document.body #2502
Comments
mgol
added a commit
to mgol/jquery
that referenced
this issue
Jul 28, 2015
Attaching test divs to document.documentElement instead of document.body used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests on document ready, though so it could be aligned with master. This makes jQuery Compat support tests work correctly even if jQuery is included & used in head before body even exists - making it similar to the master behavior. Fixes jquerygh-2502
|
PR: #2504. |
mgol
added a commit
to mgol/jquery
that referenced
this issue
Jul 28, 2015
Attaching test divs to document.documentElement instead of document.body used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests on document ready, though so it could be aligned with master. This makes jQuery Compat support tests work correctly even if jQuery is included & used in head before body even exists - making it similar to the master behavior. Fixes jquerygh-2502
mgol
added a commit
to mgol/jquery
that referenced
this issue
Jul 28, 2015
Attaching test divs to document.documentElement instead of document.body used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests on document ready, though so it could be aligned with master. This makes jQuery Compat support tests work correctly even if jQuery is included & used in head before body even exists - making it similar to the master behavior. Fixes jquerygh-2502
mgol
added a commit
to mgol/jquery
that referenced
this issue
Aug 16, 2015
Attaching test divs to document.documentElement instead of document.body used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests on document ready, though so it could be aligned with master. This makes jQuery Compat support tests work correctly even if jQuery is included & used in head before body even exists - making it similar to the master behavior. Fixes jquerygh-2502
|
Landed at 9b04201. |
|
This has been problematic in IE<8 AFAIK so I'd rather not backport this to 1.12. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See #2133 (comment). I used
document.bodyfor support tests in1.11because of test failures but it seems no longer to be a problem, I'm able to run support tests in IE8 before document ready and they give correct result. We can synchronize these code paths.Refs gh-2133.
The text was updated successfully, but these errors were encountered: