From 8e8194bca5dc8248273dc095ee387947137c2919 Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Tue, 6 Mar 2018 01:14:52 +0000 Subject: [PATCH] Bundled output for commit d21ba5ee6a8921e48cb89cbbc4f05547d039d6e8 [skip ci] --- mithril.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mithril.js b/mithril.js index 093990bf..87176674 100644 --- a/mithril.js +++ b/mithril.js @@ -446,6 +446,11 @@ var coreRenderer = function($window) { var possibleParents = {caption: "table", thead: "table", tbody: "table", tfoot: "table", tr: "tbody", th: "tr", td: "tr", colgroup: "table", col: "colgroup"} function createHTML(parent, vnode, ns, nextSibling) { var match1 = vnode.children.match(/^\s*?<(\w+)/im) || [] + // not using the proper parent makes the child element(s) vanish. + // var div = document.createElement("div") + // div.innerHTML = "ij" + // console.log(div.innerHTML) + // --> "ij", no in sight. var temp = $doc.createElement(possibleParents[match1[1]] || "div") if (ns === "http://www.w3.org/2000/svg") { temp.innerHTML = "" + vnode.children + ""