handle html5 form attribute as a special case like list
This commit is contained in:
parent
b70284d493
commit
76a7d7f6d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue