title: Dynamically created iframe not working on Safari
body: <p>I have a weird problem and I find no answer on google... I dynamically create and fullfil an iframe with jquery on a page. It works fine withFF and IE, but <strong>not with Safari</strong>.</p>
  
  <p>The iframe is created but empty (the message "greetings from the iframe !" is missing).
  Here is a piece of code to illustrate it :</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-fr" lang="fr-fr" &gt;
   &lt;head&gt;
    &lt;title&gt;iframe&lt;/title&gt;
    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
     $(document).ready(function() {
  
      var jFrame = $('&lt;iframe id="myiframe" name="myiframe"&gt;');
      jFrame.css({'height':'40px','width':'200px'}).appendTo($('#container'));
  
      $('#myiframe').load(function() {
       jFrame.contents().find("body").html('greetings from the iframe !');
      });
  
     });
    &lt;/script&gt;
   &lt;/head&gt;
   &lt;body&gt;
    &lt;div id="container"&gt;&lt;/div&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I really wonder why the iframe stays empty with Safari. It seems like if "contents()" was not well interpreted...</p>
  
  <p>Any idea ?</p>