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

Fix self-closing tags used in normal element #666

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

2 participants