Skip to content
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

Manipulation: Extract domManip to a separate file #5138

Merged
merged 1 commit into from Oct 10, 2022

Conversation

mgol
Copy link
Member

@mgol mgol commented Oct 7, 2022

Summary

We've already had buildFragment extracted to a separate file long ago. domManip is quite a complex & crucial API and so far it has existed within the manipulation.js module. Extracting it makes the module shorter and easier to understand.

A few comments / messages in tests have also been updated to not suggest there's a public jQuery.domManip API - it's been private since 3.0.0.

Checklist

  • New tests have been added to show the fix or feature works
  • Grunt build and unit tests pass locally with these changes
  • If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com

@mgol mgol added Manipulation Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Oct 7, 2022
@mgol mgol added this to the 4.0.0 milestone Oct 7, 2022
@mgol mgol self-assigned this Oct 7, 2022
We've already had `buildFragment` extracted to a separate file long ago.
`domManip` is quite a complex & crucial API and so far it has existed within
the `manipulation.js` module. Extracting it makes the module shorter and easier
to understand.

A few comments / messages in tests have also been updated to not suggest there's
a public `jQuery.domManip` API - it's been private since 3.0.0.
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Oct 10, 2022
@mgol mgol merged commit ee6e874 into jquery:main Oct 10, 2022
@mgol mgol deleted the domManip-extraction branch October 10, 2022 16:15
@mgol
Copy link
Member Author

mgol commented Oct 10, 2022

I experimented with backporting it to 3.x-stable but I couldn't go below +16 bytes so maybe let's leave it as a 4.x item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants