use setAttribute for assigning attributes in hyperscript

pull/1/head
ansuz 7 years ago
parent 92ea3593cd
commit d72146ba7f

@ -99,7 +99,7 @@ function context () {
} else if (k.substr(0, 5) === "data-") { } else if (k.substr(0, 5) === "data-") {
e.setAttribute(k, l[k]) e.setAttribute(k, l[k])
} else { } else {
e[k] = l[k] e.setAttribute(k, l[k]);
} }
} }
} else if ('function' === typeof l) { } else if ('function' === typeof l) {

Loading…
Cancel
Save