Safari needs a fixing
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 theironloadoronerrorevents, and window.onerroris 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.