AFASSoftware / maquette

Pure and simple virtual DOM library

Home Page:https://maquettejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error thrown from class attribute with trailing whitespace

dkrasner opened this issue · comments

When the class attribute string contains a trailing whitespace the following error is thrown in console:

maquette.umd.js:291 Uncaught DOMException: Failed to execute 'toggle' on 'DOMTokenList': The token provided must not be empty.

This looks to be related to a closed issue but the problem persists.

Here is a codepen example. Changing textcolor textsize to textcolor textsize (note the trailing whitespace) will throw the above error in console.

Sorry about the late reply (there was an issue with our chat application integration).

The issue is fixed and shipped in 3.3.4

sounds good thank you!