correctly map className attribute

This commit is contained in:
Bruno Windels 2019-02-27 23:20:29 +01:00
parent 5fae156596
commit 16d5c3279c

View file

@ -1,4 +1,7 @@
export function setAttribute(el, name, value) { export function setAttribute(el, name, value) {
if (name === "className") {
name = "class";
}
el.setAttribute(name, value); el.setAttribute(name, value);
} }