diff --git a/mithril.js b/mithril.js index cc0e4f1f..9a70070c 100644 --- a/mithril.js +++ b/mithril.js @@ -512,7 +512,7 @@ void (function (global, factory) { // eslint-disable-line // was a trusted string if (nodes[0].nodeType === 1 || nodes.length > 1 || - !nodes[0].nodeValue.trim() + (nodes[0].nodeValue.trim && !nodes[0].nodeValue.trim()) ) { clear(cached.nodes, cached) nodes = [$document.createTextNode(data)]