Re: 'do JavaScript' still broken in Safari 3 beta
Re: 'do JavaScript' still broken in Safari 3 beta
- Subject: Re: 'do JavaScript' still broken in Safari 3 beta
- From: jj <email@hidden>
- Date: Thu, 21 Jun 2007 14:13:15 +0200
- Thread-topic: '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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden