You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled promise rejection DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided ('is-true
') contains HTML space characters, which are not valid in tokens.
at Error (native)
at ClassObserver.setValue (http://localhost:9000/jspm_packages/npm/aurelia-binding@1.0.0-beta.1.0.2/aurelia-binding.js:3764:34)
Line breaks in the class attribute throws a DOMException when combined with using the tertiary operator
Start with a working example:
Now insert a line break at the end (valid html according to https://validator.w3.org):
The following exception is then thrown:
The funny part is that the line break is part of the class name here https://github.com/aurelia/binding/blob/master/src/class-observer.js#L26
The text was updated successfully, but these errors were encountered: