-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Core: Support non-browser environments #2504
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
Conversation
Fixes jquerygh-2501 Closes jquerygh-2504 Refs 76df9e4 Refs 219c749 Refs 842958e
Once this lands (I'd appreciate a quick review of this PR, @jquery/core), I'll work on a basic test suite for Android 2.3. @timmywil @gibson042 Am I right that you prefer to not remove Android 2.3 workarounds like this one from |
Fixes jquerygh-2501 Closes jquerygh-2504 Refs 76df9e4 Refs 219c749 Refs 842958e
Fixes jquerygh-2501 Closes jquerygh-2504 Refs jquerygh-1950 Refs jquerygh-1949 Refs jquerygh-2397 Refs jquerygh-1537 Refs 842958e
Fixes jquerygh-2133 Fixes jquerygh-2501 Closes jquerygh-2504 Refs jquerygh-1950 Refs jquerygh-1949 Refs jquerygh-2397 Refs jquerygh-1537 Refs 842958e
My preference is for everything under |
👏 This looks great, @mzgol. |
Fixes jquerygh-2133 Fixes jquerygh-2501 Closes jquerygh-2504 Refs jquerygh-1950 Refs jquerygh-1949 Refs jquerygh-2397 Refs jquerygh-1537 Refs jquerygh-2504 Refs 842958e
Agreed. |
Yes, merge conflicts are a pain so isolating those would be very helpful. That will become really clear if we ever do a style sweep on the unit tests! |
@gibson042 @timmywil @dmethvin works for me. You should all like this PR, then, since it makes |
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
Fixes jquerygh-2133 Fixes jquerygh-2501 Closes jquerygh-2504 Refs jquerygh-1950 Refs jquerygh-1949 Refs jquerygh-2397 Refs jquerygh-1537 Refs jquerygh-2504 Refs 842958e
Fixes gh-2133
Fixes gh-2501
Closes gh-2504
Refs gh-1950
Refs gh-1949
Refs gh-2397
Refs gh-1537
Refs gh-2504
Refs 842958e
Second commit adds support for non-browser environments. Message of the first commit:
Core:CSS: Attach test nodes to documentElement, not body
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 gh-2502
EDIT: BTW, this PR decreases the gzipped size by 5 bytes. ;)