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
Deprecate jQuery.nodeName, remove in 4.0 #3475
Comments
If we want to remove it in 4.0, we should deprecate in 3.2. |
We can't deprecate something that's not documented. :) It's more than deprecated. |
@mgol I'd still like to give notice. We're doing the same for other undocumented functions that we plan on removing. While not required, you might call it courteous. |
Hello . i think ,to fix up this issue, jquery.nodeName function should be removed from src/core.js and added to src/deprecated.js. Correct me if i am wrong or if i am missing something.Can i take up this issue and work with this approach? |
@karan-96 That would be great! You'll find information on how to contribute here, with info on commits and PRs here. As far as the required work for this issue, that should be all the work needed for jQuery core. We'll also want to add a warning to the jQuery migrate plugin. |
Just to clarify what has to be done here, I know it's got a PR at gh-3505 but we have to eliminate internal calls in order to warn about it in jQuery Migrate.
Does that sound right to everyone? |
@dmethvin yes, that's exactly what I said in #3505 (comment) a few days ago. :) |
(although it seems it doesn't have to be a var-module in case of an exported function) |
@mgol oh sorry, I missed that! |
jQuery.nodeName gets deprecated in jQuery 3.2.0. [1] [2] [1] https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/ [2] jquery/jquery#3475 Change-Id: I7e6d5191e4db5117dbcfa89b07f25e672ed1e4d2
Description
jQuery.nodeName
is another undocumented utility function that's exposed on the jQuery object. We should remove it (probably in 4.0 as it's been there for a long time).Link to test case
https://jsfiddle.net/o648k3ga/1/
The text was updated successfully, but these errors were encountered: