NOTE: Before this question is assumed a duplicate, there is a section at the bottom of this question that addresses why a few similar questions do not provide the answer
You can use outerHTML property of each element, and add it to a parent element (that will create by document.createElement(), the element type doesn't matter).
For example, in ES6:
function getNodeList(elements) {
const parentElement = document.createElement('div');
// This can be a differnet element type, too (but only block (display: block;) element, because it impossible to put block element in inline element, and maybe 'elements' array contains a block element).
let HTMLString = '';
for (let element of elements) {
HTMLString += element.outerHTML;
}
parentElement.innerHTML = HTMLString;
return parentElement.childNodes;
}