From 0a24a67ca91b99f986d95b5c58e08c0ade229c35 Mon Sep 17 00:00:00 2001 From: jeerbl Date: Tue, 21 Feb 2017 14:44:14 +0100 Subject: [PATCH] Fix: check correctly the attribute we want to set --- src/client/updaters/updateTags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/updaters/updateTags.js b/src/client/updaters/updateTags.js index 99db389d..017e8d5f 100644 --- a/src/client/updaters/updateTags.js +++ b/src/client/updaters/updateTags.js @@ -24,9 +24,9 @@ export default function _updateTags (options = {}) { for (const attr in tag) { if (tag.hasOwnProperty(attr)) { - if (attribute === 'innerHTML') { + if (attr === 'innerHTML') { newElement.innerHTML = tag.innerHTML - } else if (attribute === 'cssText') { + } else if (attr === 'cssText') { if (newElement.styleSheet) { newElement.styleSheet.cssText = tag.cssText } else {