window.getSelection() and bookmarks in Mobile Safari

Originator:agiletortoise
Number:rdar://8562369 Date Originated:18-Oct-2010 10:31 AM
Status:Open Resolved:
Product:iPhone/iPod Touch Product Version:
Classification:UI Reproducible:Always
 
18-Oct-2010 10:31 AM Greg Pierce:
Summary:

Steps to Reproduce:

1) Create a bookmark in Mobile Safari.
2) set the URL of the bookmarklet to "javascript:alert(window.getSelection());"
3) select text in a web page
4) click bookmark button and select the bookmark created in step #1.

Expected Results:

A javascript alert message with the content of the text selection.

Actual Results:

A blank javascript alert message. Test in Safari on desktop for expected result, as well.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!