Upgrades htmlparser2 to new major version ^8.0.0.#573
Upgrades htmlparser2 to new major version ^8.0.0.#573boutell merged 2 commits intoapostrophecms:mainfrom techieKedar:develop
htmlparser2 to new major version ^8.0.0.#573Conversation
|
Hello @boutell, this is another PR as asked by you. It has only the change which was needed for the issue. Test cases were changed to bring the behavior in sync with the new version of Please let me know your comments and changes needed. Thanks, |
|
Because of the |
|
@kedarchandrayan reminder that there is an unanswered question blocking this PR: Because of the parser option, which is passed on directly to htmlparser2, it is a backwards compatibility break to upgrade to a new major release of htmlparser2, unless the htmlparser2 API has not changed. Can you review the changelog of htmlparser2 to figure out if we need a major version bump for sanitize-html itself and/or a few bc wrappers to allow legacy htmlparser2 options to still work? |
# Conflicts: # CHANGELOG.md
|
Sure @boutell, I will go through the CHANGELOG of htmlparser2 for figuring out the need for a major update here. Sorry missed your last reply. |
|
Hello @boutell, htmlparser2 has src/Parser.ts which has Additionally, I went through the release changes mentioned here. Parser option change is not mentioned in any release. Conclusion: We will not need a major bump for this PR. |
|
Thanks! |
Summary
Closes #565
What are the specific steps to test this change?
All existing behavior should remain same.
What kind of change does this PR introduce?
Make sure the PR fulfills these requirements:
If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information: