Skip to content

Conversation

@jiniC
Copy link

@jiniC jiniC commented Aug 8, 2021

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant