Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'do JavaScript' still broken in Safari 3 beta



> tell application "Safari"
>      do JavaScript "document.title = 'hello'; return 1" in tab 1 of
> window 1
> end tell
> 
> Window title changes as expected; still no return value though, so
> 'do JavaScript' is definitely broken. Feel free to file your own bug
> report on it; this is something that should've been caught by basic
> unit testing well before public beta.

I think this use of "return" is "invalid". "return" must be used inside a
function (?)

Anyway, I agree with the lack of AS support in Safari.

Seems that 3b now coerces results (if possible). It shouldn't, I think. And
if it does, it should also throw AS-errors when the do JavaScript call does
so... (for example, appart from the DOM and appart from lots of missing
functions in Safari and, more generally, in most of browsers).


jj


-- 
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >'do JavaScript' still broken in Safari 3 beta (From: has <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.