From d72146ba7f6483bebb830fb2cd499cc10deb730c Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 19 Sep 2017 10:27:14 +0200 Subject: [PATCH] use setAttribute for assigning attributes in hyperscript --- www/common/hyperscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/hyperscript.js b/www/common/hyperscript.js index 3be018194..0dbb0f80b 100644 --- a/www/common/hyperscript.js +++ b/www/common/hyperscript.js @@ -99,7 +99,7 @@ function context () { } else if (k.substr(0, 5) === "data-") { e.setAttribute(k, l[k]) } else { - e[k] = l[k] + e.setAttribute(k, l[k]); } } } else if ('function' === typeof l) {