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

Browser determines rune offsets, the oracle wants byte offsets #7

Closed
fzipp opened this issue Sep 16, 2013 · 1 comment
Closed

Browser determines rune offsets, the oracle wants byte offsets #7

fzipp opened this issue Sep 16, 2013 · 1 comment
Assignees
Labels

Comments

@fzipp
Copy link
Owner

fzipp commented Sep 16, 2013

window.getSelection().getRangeAt(0) returns rune offsets, not byte offsets.

@fzipp
Copy link
Owner Author

fzipp commented Sep 17, 2013

Workaround via a (rather inefficient) rune->byte offset conversion in JavaScript.

@fzipp fzipp closed this as completed Sep 17, 2013
@ghost ghost assigned fzipp Sep 17, 2013
fzipp added a commit that referenced this issue Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant