rangy icon indicating copy to clipboard operation
rangy copied to clipboard

Do not create range with default document.

Open davireis opened this issue 10 years ago • 0 comments

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

davireis avatar Apr 08 '16 07:04 davireis