xml.js icon indicating copy to clipboard operation
xml.js copied to clipboard

Doesn't work in node-webkit

Open jacobq opened this issue 10 years ago • 3 comments

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?

jacobq avatar Jul 02 '14 21:07 jacobq

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.

fenwick67 avatar May 12 '15 19:05 fenwick67

Does polotek/libxmljs work?

sterpe avatar May 12 '15 20:05 sterpe

@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.

fenwick67 avatar May 13 '15 16:05 fenwick67