Safari removed javascript API

In the latest version of Safari (WebKit) they have removed some deprecated javascript API & tags which can cause problems with older code. This is my attempt to keep track of them so I can search through the code and change it to use a newer method.

Here is a list of what works in Firefox 3 or Internet Explorer but not Safari:

  • document.[form name] where [form name] matches the element <form name='[form name]'>
    Replacement:Use document.getElementById() instead
  • document.embeds
    Use document.getElementById() instead
  • Form element's id defaulted to their name
    Manually specify the id
  • <applet> tag
    <object> tag
That's it for the moment but I'll keep updating the list as I find them.