The
SVG-powered simulated deal now works on Safari. In the
end I achieved this by using the special attribute that
signals to Adobe that it should use its own JavaScript engine,
not its host’s (in this case, Safari’s).
I have also belatedly switched the script to using
document.URL to find its URL rather than the
HTML-style location.search (which fails on Safari
as well).
Supposedly it
is possible to arrange for JavaScript errors to appear in the
system console; I enabled this option but (even when not
using Adobe’s engine) saw no error messages. I presume
this is because JavaScript is happening in the context of the
SVG not the HTML, but, well, in the end it was debugging
through window.alert as per usual.
Safari’s overoptimistic caching did not help.