Run results for: Generate HTML and get reference to element : DOMParser + querySelectorAll vs document.createElement
We want to build HTMLElements and get reference to some of them in an object named controller. Here we say we want reference to elements with an 'id'.<br>
<br>
We test two different methods :<br>
- Create elements from HTML string using DOMParser and use querySelectorAll to build controller<br>
- Create elements from createElement method and build controller from them<br>
<br>
Here we also put the generated DOM in a fragment because we want to be able to append generated DOM to any element