• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'do JavaScript' still broken in Safari 3 beta
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: 'do JavaScript' still broken in Safari 3 beta
  • Next by Date: Re: Speaking of Safari's do Javascript....
  • Previous by thread: 'do JavaScript' still broken in Safari 3 beta
  • Next by thread: Speaking of Safari's do Javascript....
  • Index(es):
    • Date
    • Thread