Skip to content

Commit

Permalink
Merge pull request #192 from cbbfcd/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Jun 16, 2022
2 parents 870ab76 + 93245d7 commit 0af6982
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/million/createElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ export const createElement = (vnode?: VNode | null, attachField = true): DOMNode
} else if (propName.charCodeAt(5) === COLON_CHAR) {
el.setAttributeNS(XLINK_NS, propName, String(propValue));
}
} else if (el[propName] !== undefined && !(el instanceof SVGElement)) {
} else if (
el[propName] !== undefined &&
!(el instanceof SVGElement) &&
propName !== "list" &&
propName !== "form" &&
propName in el
) {
el[propName] = propValue;
} else {
el.setAttribute(propName, String(propValue));
Expand Down

0 comments on commit 0af6982

Please sign in to comment.