You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you create a document fragment object using document.createDocumentFragment() and then you check whether the returned value is an instance of DocumentFragment using happy-dom, we get a return value of false.
To Reproduce
Steps to reproduce the behavior:
Create a DocumentFragment object
constmyElement=document.createDocumentFragment();
Run the instanceof check
console.log('is my element a DocumentFragment?:',myElementinstanceofDocumentFragment);
Observe that the output of above shows:
is my element a DocumentFragment?: false
The full code using happy-dom:
import{GlobalRegistrator}from'@happy-dom/global-registrator';GlobalRegistrator.register();constmyElement=document.createDocumentFragment();console.log('is my element a DocumentFragment?:',myElementinstanceofDocumentFragment);awaitGlobalRegistrator.unregister();
The text was updated successfully, but these errors were encountered:
Describe the bug
If you create a document fragment object using
document.createDocumentFragment()
and then you check whether the returned value is an instance ofDocumentFragment
using happy-dom, we get a return value offalse
.To Reproduce
Steps to reproduce the behavior:
DocumentFragment
objectis my element a DocumentFragment?: false
The full code using happy-dom:
The text was updated successfully, but these errors were encountered: