AFASSoftware / maquette

Pure and simple virtual DOM library

Home Page:https://maquettejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error is thrown when class attribute is an empty string

jcfranco opened this issue · comments

#121 (comment) added the capability to change class between renders. Unfortunately, an error is thrown when the class is an empty string:

Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.

Test case: https://codepen.io/jcfranco-the-scripter/pen/OoVRzE?editors=0111

This should fix the issue. Please tell me if you want a new release with this.

Fun fact: this makes maquette 10 bytes smaller.

Please tell me if you want a new release with this.

Yes, please. 😄

Fun fact: this makes maquette 10 bytes smaller.

Awesome.