Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rangy is not compatible with jsdom #348

Open
vsemozhetbyt opened this issue Sep 25, 2015 · 1 comment
Open

rangy is not compatible with jsdom #348

vsemozhetbyt opened this issue Sep 25, 2015 · 1 comment

Comments

@vsemozhetbyt
Copy link

jsdom is a popular implementation of DOM for Node.js. It can load and parse documents with adding external libraries to them:

https://github.com/tmpvar/jsdom

It lacks Selection implementation, so I've tried to add rangy library to loaded documents (mainly for innerText emulation, see jsdom/jsdom#1245).

However when I add a rangy-core.js path to the jsdom.env() initializer, I get window.rangy object with rangy.supported as false and core methods undefined.

Could you consider at least to check what else is lacking in the jsdom for rangy compatibility?

@vsemozhetbyt
Copy link
Author

rangy.innerText() of rangy-textrange.js module is not defined as well after module loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant