From 28a96275a8e0b73375e1168a079e145bb170ad12 Mon Sep 17 00:00:00 2001 From: Carson Gross Date: Fri, 4 Nov 2022 10:20:10 -0600 Subject: [PATCH] ie fix --- test/util/util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/util/util.js b/test/util/util.js index 393de6df..322deb09 100644 --- a/test/util/util.js +++ b/test/util/util.js @@ -10,8 +10,9 @@ function make(htmlStr) { var fragment = range.createContextualFragment(htmlStr); var wa = getWorkArea(); var child = null; - while(fragment.children.length > 0) { - child = fragment.children[0]; + var children = fragment.children || fragment.childNodes; // IE + while(children.length > 0) { + child = children[0]; wa.appendChild(child); htmx.process(child); }