We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<div class="popup welcome popup popup welcome"></div> should be equivalent to <div class="welcome popup"></div>
<div class="popup welcome popup popup welcome"></div>
<div class="welcome popup"></div>
The text was updated successfully, but these errors were encountered:
Are you sure that it is necessary to do do ?
Could you give some links to spec ?
Sorry, something went wrong.
ex1:
var elem = document.createElement('div'); elem.className = 'popup popup open popup'; console.log(elem.classList); // ["popup", "popup", "open", "popup"]
ex2:
var elem = document.createElement('div'); elem.classList.add('popup') elem.classList.add('popup') elem.classList.add('open') elem.classList.add('popup') console.log(elem.classList); // ["popup", "open"]
https://www.w3.org/TR/html401/struct/global.html#h-7.5.2
It should be an option or used by default?
I don't see why it should be hidden under option. It's like resorting class names inside class attribute.
Successfully merging a pull request may close this issue.
<div class="popup welcome popup popup welcome"></div>
should be equivalent to
<div class="welcome popup"></div>
The text was updated successfully, but these errors were encountered: