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

IE8 selection to string returns object not string #199

Closed
timdown opened this issue Mar 23, 2014 · 2 comments
Closed

IE8 selection to string returns object not string #199

timdown opened this issue Mar 23, 2014 · 2 comments

Comments

@timdown
Copy link
Owner

timdown commented Mar 23, 2014

From graje...@gmail.com on February 26, 2014 14:07:03

What steps will reproduce the problem? I have created a simple demo which shows the problem - see attached file. The problem occurs when you use rangy804.js but not rangy.js.

  1. Load the rangydemo/index.htm file from the attached package
  2. Select any text on the page
  3. Inspect the content of the window alert.

The code is simply running getSelection().getRangeAt(0).toString(); What is the expected output? What do you see instead? You should see the text you select echoed back to you in a browser window alert. This happens correctly with most browsers. However, when running in IE8 a JS object is shown in the window alert. You do need a proper install of IE8 for this - running higher versions of IE in IE8 mode does not demonstrate the error. What version of the product are you using? On what operating system? The rangy804.js file contains the latest stable release rangy 1.3.804 from your downloads page. The rangy.js file is the slightly older 1.3.772 release.

These files include both the rangy-core.js content and the TextRange module.

My testing has been on XP.

Attachment: rangydemo.zip

Original issue: http://code.google.com/p/rangy/issues/detail?id=199

@timdown
Copy link
Owner Author

timdown commented Mar 23, 2014

From timd...@gmail.com on March 01, 2014 01:38:45

Status: Accepted

@timdown
Copy link
Owner Author

timdown commented Mar 23, 2014

From timd...@gmail.com on March 01, 2014 04:38:21

Status: FixedInNextRelease

@timdown timdown closed this as completed Jul 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant