diff --git a/src/ui/web/html.js b/src/ui/web/html.js
index 112f76c0..754e3ebe 100644
--- a/src/ui/web/html.js
+++ b/src/ui/web/html.js
@@ -1,4 +1,7 @@
export function setAttribute(el, name, value) {
+ if (name === "className") {
+ name = "class";
+ }
el.setAttribute(name, value);
}