while ((e != null) && e.hasMoreElements()) { a.add(Context.toObject(e.nextElement(), core.global));
for (int i=start; i<start+length; i++) { INode n = node.getSubnodeAt(i); if (n != null) { a.add(Context.toObject(n, core.global)); }
    public Scriptable jsFunction_list() {        checkNode();        Enumeration e = node.getSubnodes();        ArrayList a = new ArrayList();        while ((e != null) && e.hasMoreElements()) {            a.add(Context.toObject(e.nextElement(), core.global));        }        return Context.getCurrentContext().newArray(core.global, a.toArray());    }