-
Notifications
You must be signed in to change notification settings - Fork 238
Support for calling run function in node.js #99
Conversation
Not quite sure if we should have to make changes because jsDom doesn't support what we need. There is an open issue on their repo, maybe we should pester them to get it working. The only reason I'm hesitant to get rid of TreeWalker is performance-related, last I checked it beats other methods of traversal, but I did check a long time ago 😄 |
The fact that the issue has been open for three years isn't all that encouraging. I don't think the change would affect the performance majorly (could even be faster). |
I could make it so my tree traversal function is used instead of TreeWalker when it's not available. It would only be an extra 20 or so lines. |
Yep, I'd be happy with that, the other thing, I'd rather it didn't have to pass a |
Great! The window object is needed to call functions like |
This is ready to be merged now. |
@hassankhan Got rid of the need to pass the window 😉
Should the node-only tests be gone now? Maybe we could just have all the tests in the |
Also, you probably need to update CONTRIBUTING.md |
Moved the tests around there. Not sure where to put the actual tests. Wouldn't be all that nice having a |
Test structure looks good to me |
Support for calling run function in node.js
Thanks @4ver! |
No description provided.