xml.js
xml.js copied to clipboard
Doesn't work in node-webkit
Hi, I'm trying to use this inside of node-webkit (and I've ended up going from zero to not-a-complete-idiot regarding knowledge of emscripten). I couldn't figure out what I was doing wrong so I tried cloning your demo page (i.e. Chrome -> Save Page As... webpage, complete) and running the text-input validation from the local copy. It worked fine. However, when I added vanilla package.json file and attempted to run in node-webkit (node-webkit v0.8.6, node.js v0.10.22, Chromium 30.0.1599.66) the call to validateXML returns an empty string. Any idea what would cause this?
I just ran into the same issue on win7 x64, works on chrome 42 but not on nwjs v0.12.0 (with chromium 41). Very odd that it works in Chrome but not in nwjs. There must be some quirk we are unaware of.
Does polotek/libxmljs work?
@sterpe I didn't try polotek/libxmljs.
My understanding is that libxmljs is just bindings to the native C modules, so it is a different animal and Nodejs only.
My goal was a totally client-side web app, I just use Node-Webkit for developing web projects sometimes since it allows cross-origin requests.