Browse Source

use setAttribute for assigning attributes in hyperscript

master
ansuz 3 years ago
parent
commit
d72146ba7f
1 changed files with 1 additions and 1 deletions
  1. 2
      www/common/hyperscript.js

2
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) {

Loading…
Cancel
Save