Here is an example that demonstrates a flawed method:
const HTML = require('html-element');
const doc = `<body>
</body>`;
const page = HTML.document.createElement(doc)
page.appendChild('<div>1</div>')
page.appendChild('<div>2</div>')
page.appendChild('<div>3</div>')
console.log(page)
However, this approach is incorrect because
page.document.querySelectorAll("div")
does not work. Is there a proper way to accomplish this task?