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

Do not create range with default document. #386

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

davireis
Copy link

@davireis davireis commented Apr 8, 2016

Hi,

I stumbled upon this while using findText within an iframe, which happens in my mocha+phantomjs test setup. This is the error message:

  1) ...:
     Error: WRONG_DOCUMENT_ERR: DOM Exception 4
      at http://localhost:9000/app/bower_components/rangy/rangy-core.js:2304
      at updateNativeRange (http://localhost:9000/app/bower_components/rangy/rangy-core.js:2228)
      at http://localhost:9000/app/bower_components/rangy/rangy-core.js:1969
      at http://localhost:9000/app/bower_components/rangy/rangy-core.js:2360
      at http://localhost:9000/app/bower_components/rangy/rangy-textrange.js:1714
      at http://localhost:9000/app/bower_components/rangy/rangy-textrange.js:1514

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

Successfully merging this pull request may close these issues.

2 participants