Safari needs a fixing

written by Tobie on December 25th, 2006 @ 09:19 PM

As I already mentioned in my last post, Safari lacks support for quite a few advanced javascript techniques. Lately, I’ve been toying with On-Demand Javascript, a brilliant technique using dynamic script tags and JSON to bypass the same origin policy, i.e. allow cross-domain scripting.

Again, Safari is keeping us behind. Here’s how:

  • neither the <script> tag nor the <iframe> tag fire either of their onload or onerror events, and
  • window.onerror is just not implemented.

So while pretty descent error handling can be implemented in both Firefox and Internet Explorer, Safari prevents us from finding a solid, cross-browser solution. What a shame.

UPDATE: Both of these bugs have been corrected in the latest WebKit nightly builds.

Comments are closed