-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Tests: Add tests for jQuery.get( String, null-ish, null-ish, String )
#5645
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mgol
added a commit
to mgol/jquery
that referenced
this pull request
Mar 31, 2025
The original test's `text` variant just repeated the previous test with 3 parameters; the goal was to use 4 ones. This fixes it. Ref jquerygh-5640 Ref jquerygh-5645
This was referenced Mar 31, 2025
mgol
added a commit
to mgol/jquery
that referenced
this pull request
Apr 1, 2025
The original test's `text` variant just repeated the previous test with 3 parameters; the goal was to use 4 ones. This fixes it. Ref jquerygh-5640 Ref jquerygh-5645
Also, fix `mock.php` formatting to not fail the `jQuery.get( String, null, String )` test in PHP mode. Ref jquerygh-5640 Ref jquerygh-4989 Ref jquery/api.jquery.com#1208
ef9f4b4
to
f007665
Compare
timmywil
approved these changes
May 12, 2025
mgol
added a commit
to mgol/api.jquery.com
that referenced
this pull request
May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also have to provide the `data` parameter; you can set it to `undefined`. Document this restriction of `jQuery.get` & `jQuery.post`. Closes jquerygh-1208 Ref jquery/jquery#4989 Ref jquery/jquery#5139 Ref jquery/jquery#5640 Ref jquery/jquery#5645 Ref jquery/jquery#5646
mgol
added a commit
to jquery/api.jquery.com
that referenced
this pull request
May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also have to provide the `data` parameter; you can set it to `undefined`. Document this restriction of `jQuery.get` & `jQuery.post`. Closes gh-1208 Ref jquery/jquery#4989 Ref jquery/jquery#5139 Ref jquery/jquery#5640 Ref jquery/jquery#5645 Ref jquery/jquery#5646
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Also, fix
mock.php
formatting to not fail thejQuery.get( String, null, String )
test in PHP mode.Ref gh-5640
Ref gh-4989
Ref jquery/api.jquery.com#1208
Checklist
data: null
with 3 params api.jquery.com#1208