Skip to content

Commit a86a96f

Browse files
committed
ie fix
1 parent 28a9627 commit a86a96f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

www/test/1.8.3/test/util/util.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ function make(htmlStr) {
1010
var fragment = range.createContextualFragment(htmlStr);
1111
var wa = getWorkArea();
1212
var child = null;
13-
while(fragment.children.length > 0) {
14-
child = fragment.children[0];
13+
var children = fragment.children || fragment.childNodes; // IE
14+
while(children.length > 0) {
15+
child = children[0];
1516
wa.appendChild(child);
1617
htmx.process(child);
1718
}

0 commit comments

Comments
 (0)