for (var w = wgt.firstChild; w; w = w.nextSibling) {
                    let elem = w.$n();
                    if (!elem) {
                        // treechildren may not have the value from $n()
                        elem = w.parent.$n();