On Mon May 27 16:02:11 2024 +0000, Santino Mazza wrote:
Sorry for taking too long to respond, I had to test some stuff to remember why I did it heh (It's been a year since I wrote this changes). Document fragments don't have the documentElement property (https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement) like normal document objects.
I see. In fact it does look like doc frags don't have `html` tags at all, even on Windows:
```javascript var docfrag = document.createDocumentFragment(); ok(docfrag.querySelector("html") === null, "html tag in doc frag"); ``` (IE8+ since previous ones don't expose querySelector)
So maybe your approach is correct, maybe Jacek has an idea.