Closed CaptainJKoB closed 3 years ago
This is a very ugly limitation of basicHTML, which I am planning to deprecate soon and use linkedom instead, which never needs, nor use, global document
or global window
things (although here needed by heresy itself due lighterhtml needing it too).
A workaround is to set the element ownerDocument
via the oninit()
callback, but it's an ugly workaround indeed, although it should produce the expected result.
Okey, thank you for the insight. I will try to workaroud it somehow.
Hello 👋
If you want to use multiple documents for rendering the
ownerDocument
property of the element rendered inside the document always points towards thedocument
exported fromheresy-ssr
. Is there any way to point it towards the newly created document?Thanks
Reproduction example:
Logging output: