i have created a NodeList with nodeList = document.createDocumentFragment().childNodes;
,
then i have set nodeList[0] = document.getElementById("foo");
everything works fine, the only problem is, that nodeList.length
stays 0
i have allready tried to change an Array to a NodeList. Also i have tried to use a fragment, appended children and changed them afterwards and returned the childnodes.
i cannot just append the original children, because they get removed somewere else then.
what am i missing?
yes i know i could just use an Array, but i want to NodeList element