Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if addClass is truthy before adding it to element
DOMTokenList::add() throws a DOMException if you try to add an empty string as a class. This check prevents this from happening so that you can set ValidationInputValidCssClassName etc. to an empty string if you don't want to add classes for valid input fields or messages for instance.
- Loading branch information