Skip to content

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.
@mgol mgol force-pushed the domManip-extraction branch from 4d681d6 to db9652b Compare October 7, 2022 15:33
@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.

3 participants