Fix self-closing tags used in normal element #666
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.
After updating the jQuery to to latest version (3.6.0), mCustomScrollbar is not working.
Errors caused by jQuery updates have already been discussed several times in the issue.
This is one of those issues : #663
I found that this problem was caused by self-closing tags used in normal element and fixed it.
According to the HTML5 spec, tags that cannot have any contents (known as void elements) can be self-closing*.
Self-closing tags on non-void elements like
<div/>
,<a/>
which I found in this library will not work at all. The trailing slash will be ignored, and these will be treated as opening tags. This is likely to lead to nesting problems.In fact, this is already causing problems. jQuery corrected this automatically in the previous version, but the latest version does not catch it, so an error is occurring.