Coder Social home page Coder Social logo

Comments (5)

lucaju avatar lucaju commented on June 11, 2024

Hi @raffazizzi. I have the same problem. My plan was actually to use salve-dom in Web Worker to unload the heavy validation task off of the main thread. Have you managed to make it work on Node using jsdom? If you did, can you share your solution?
@lddubeau , do you think you can take a look at this?

from salve-dom.

raffazizzi avatar raffazizzi commented on June 11, 2024

Hi @lucaju. I made it possible in my fork (https://github.com/raffazizzi/salve-dom) but also added a bunch of other stuff that I needed for the VS Code extension I was writing and it may be a bit difficult to extract that specific part from the rest, though feel free to take a look!

from salve-dom.

raffazizzi avatar raffazizzi commented on June 11, 2024

Whoops nevermind, I ended up making my changes to salve not salve-dom: https://github.com/raffazizzi/salve

from salve-dom.

lucaju avatar lucaju commented on June 11, 2024

Oh. Great. Thank you very much @raffazizzi I will definitely take a look at this right away :)

from salve-dom.

lddubeau avatar lddubeau commented on June 11, 2024

Sorry, when this was posted in 2020, I must have run into an email problem. I never saw this notice.

Note that salve-dom and salve are no longer in active development, as the project to which they were attached has been abandoned. I do not know if or when they will be developed again.

salve-dom expects a DOM (Document Object Model) and AFAIK DOM specifies that window must exist. I recommend to use jsdom if you want to use salve-dom with a fake DOM, but other solutions might work like Cheerio, for instance. I just know jsdom more than other libraries.

It is possible to use Salve alone without a DOM by just using the salve library.

I'm going to close this as I don't see any change necessary to salve-dom. I can reopen if someone convinces me otherwise.

from salve-dom.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.