I know, there were millions of such questions, but I just can't find anything that's helpful :(
Why does document.getElementById("game") return null, even if the document clearly contains such element?
I know, there were millions of such questions, but I just can't find anything that's helpful :(
Why does document.getElementById("game") return null, even if the document clearly contains such element?
The element with that ID does not belong to the document. It belongs to the shadow DOM attached to the <game-theme-manager> element.