From 61302412123fc37a07d82ec2def28f6102159ec8 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 15 Dec 2018 18:11:30 -0500 Subject: [PATCH] rely in setAttribute behaviour inside setCustomElementData --- src/shared/dom.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/dom.js b/src/shared/dom.js index 662824f925..d5165ed803 100644 --- a/src/shared/dom.js +++ b/src/shared/dom.js @@ -101,10 +101,8 @@ export function setAttributes(node, attributes) { export function setCustomElementData(node, prop, value) { if (prop in node) { node[prop] = value; - } else if (value != null) { - setAttribute(node, prop, value); } else { - node.removeAttribute(prop); + setAttribute(node, prop, value); } }