I dynamically create an element using the following line of code in JavaScript:
const element = document.createElement("img");
I am able to access and modify the properties of the element, so it clearly exists, but what I can't figure out is where it is stored in the HTML node tree.
element.parentNode and element.previousSibling both return null. Does anyone know where it is actually located?