title: JavaScript commands not executed in order in Safari
body: <p>I discovered this bug while dealing with another issue. The order of JavaScript commands listed is different than the order of their execution in Safari:</p>
  
  <p>Example:</p>
  
  <pre><code>alert('here');
  document.write('This is the hidden message.');
  alert('You should be seeing the hidden message by now.');
  </code></pre>
  
  <p>In my browser the <code>alerts</code> are executed before the <code>document.write()</code> statement. I've seen this bug on two different Mac OS X's using Safari versions 5.17, 6.0 and 6.0.2, but I haven't confirmed that anyone else has seen this yet.</p>
  
  <p>Here's the fiddle:</p>
  
  <p><a href="http://jsfiddle.net/akJD7/" rel="nofollow">http://jsfiddle.net/akJD7/</a></p>
  
  <p>Can anyone confirm that they see this and if so, tell me why this is happening?</p>