Safari's WebCore and/or JavaScriptCore has a potential bug relating to inline scripts in documents with linked stylesheets. To illustrate this problem, I'm using a simple page with a form followed by an inline script which assigns focus to one of the form input fields. Safari 1.0 (v85) and OmniWeb 4.5 (v496) were the primary browsers used for testing.
All test pages are XHTML 1.0 Transitional unless otherwise noted.
Note that workaround 3 inconsistently fails on reload.
All of these examples will focus on the first form element in WinMSIE, MacMSIE and Mozilla.
All pages validate. authored by Joe Maller, August 11, 2003