jsdom issues #11090
Unanswered
carstenjaksch
asked this question in
Q&A
jsdom issues
#11090
Replies: 1 comment 1 reply
-
Did you ever figure this out? I came from #905 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to get jsdom to work. Well ... it does work. But some things are off:
The stack trace mentions jsdom:
at node_modules/jsdom/lib/api.js (api.js:6:27)
bind:offsetHeight
of the parent component where the parsed HTML nodes get passed into a slot does not work anymore. It is undefined.The HTML is there, but the browser stuff does not work. I know jsdom is a Node (backend) tool. But how do I handle that in a browser environment?
This is my jsdom code inside the child component:
I am trying to parse some HTML string that comes from an API and parse it into nodes that I can process to load components from a list. If no corresponding component is there, output the HTML only.
As I said, the HTML and components are there. It works ... But the other stuff that relies on this HTML does not work (it worked before).
Any help would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions