handle html5 form attribute as a special case like list

This commit is contained in:
Leo Horie 2014-09-01 18:32:28 -04:00
parent b70284d493
commit 76a7d7f6d9

View file

@ -278,7 +278,7 @@ Mithril = m = new function app(window, undefined) {
else if (attrName === "value" && tag === "input") {
if (node.value !== dataAttr) node.value = dataAttr
}
else if (attrName in node && !(attrName == "list" || attrName == "style")) {
else if (attrName in node && !(attrName == "list" || attrName == "style" || attrName == "form")) {
node[attrName] = dataAttr
}
else node.setAttribute(attrName, dataAttr)