Closed finnp closed 8 years ago
This example would work fine in yo-yo:
yo-yo
var yo = require('yo-yo') yo`<div class="${a} ${b}">`
But is turned into
var bel0 = document.createElement("div") bel0.setAttribute("class", arguments[0] + " ") return bel0 }(a))
So the second class name is omitted. Of course there are easy work arounds, but it still seems like an error to me.
I only tested this with v1.0.4 so far.
v1.0.4
This seems to be the case for all kinds of attributes, was running into it with a href attribute as well.
href
This example would work fine in
yo-yo
:But is turned into
So the second class name is omitted. Of course there are easy work arounds, but it still seems like an error to me.
I only tested this with
v1.0.4
so far.