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
I found another bug related to this feature (lmk if I should report as a different issue) - it seems like this string <body><x></x>Example Text will not detect body as the root, although it should - this will break HappyDOM for use in frameworks like Angular. (new window.DOMParser()).parseFromString("<body><x></x>Example Text", "text/html").body.innerHTML
Chrome: <x></x>Example Text
HappyDOM: <body><x></x>Example Text</body>.
Looks like the cause is in:
tagName BODY should match as well in order to correctly detect documentTypeNode.
It somewhat seems like it's the intent of the next check to catch this case, but I am not sure why that is not working or if the intent is different. node[PropertySymbol.nodeType] === NodeTypeEnum.documentTypeNode @capricorn86
Describe the bug
Using bun, I get the following error when trying to use
DOMParser.parseFromString
:To Reproduce
Steps to reproduce the behavior:
Run a script with bun that does something like:
Expected behavior
A successfully parsed document
Screenshots
Device:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: