Skip to content

Instantly share code, notes, and snippets.

@mgaudet
Created December 13, 2013 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgaudet/7947377 to your computer and use it in GitHub Desktop.
Save mgaudet/7947377 to your computer and use it in GitHub Desktop.
Bug Report 15656765
Summary:
In iOS6 I could select text, and then open a bookmarklet (like this one for example: https://bitbucket.org/mgaudet/dayonebookmarklet/src/1062388c8320f72ca099f4e684a9d9822d7e905c/dayone.html?at=master) which grabbed the text using window.getSelection().
However, it seems in iOS7, any action to invoke a bookmarklet deselects the text.
Steps to Reproduce:
1. Have a bookmarklet which uses window.getSelection()
2. Select Text
3. Try to invoke bookmarlet
Expected Results:
Bookmarklet is invoked, with selected text available in window.getSelection()
Actual Results:
Bookmarklet is invoked, however selection is removed, and no text is available in window.getSelection().
Version:
iOS 7.0.4 (11B554A)
Notes:
Configuration:
iOS 7, iPhone 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment