function getSelectorFunc(searchFunc){
	return function select(query, elems, options){
        if(typeof query !== "function") query = compileUnsafe(query, options, elems);
        if(!Array.isArray(elems)) elems = getChildren(elems);
		else elems = removeSubsets(elems);
		return searchFunc(query, elems);
	};
}
Create a deep copy of the given DOM structure by first rendering it to a
string and then parsing the resultant markup.

@argument {Object} dom - The htmlparser2-compliant DOM structure
@argument {Object} options - The parsing/rendering options