[Webkit-unassigned] [Bug 6938] New: getSelection is broken from a "do javaScript" call

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Jan 30 12:14:07 PST 2006


           Summary: getSelection is broken from a "do javaScript" call
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://www.apple.com
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: timothy.c.bates at gmail.com

This little applescript should return the selection from the current front-most

tell application "Safari" to    do JavaScript "getSelection()" in document 1
--shouldn't fail

It used to work before 1.3, and has been broken since. This is a bad entree to
scripting the browser.

Work around: 
tell application "Safari"
        do JavaScript "unescape(getSelection())" in document 1 --work around
end tell

Shouldn't be needed.

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list