diff --git a/render/hyperscript.js b/render/hyperscript.js index 12fcf0be..28ce0d35 100644 --- a/render/hyperscript.js +++ b/render/hyperscript.js @@ -19,7 +19,8 @@ function hyperscript(selector) { else if (match[3][0] === "[") { var attrValue = match[6] if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1").replace(/\\\\/g, "\\") - attributes[match[4]] = attrValue || true + if (match[4] === "class") classes.push(attrValue) + else attributes[match[4]] = attrValue || true } } if (classes.length > 0) attributes.className = classes.join(" ")