title: Why is jquery adding CR-LF to newly created elements in IE7 and IE8?
body: <p>JQuery is adding the carrige return and new line characters to the beginning of any newly created JQuery elements in IE7 and IE8. What is going on?</p>
  
  <p>Using JQuery version 1.9.1 with the following:</p>
  
  <pre><code>var myDiv = $('&lt;div&gt;');
  alert('myDiv[0].outerHTML="' + myDiv[0].outerHTML + '"');
  </code></pre>
  
  <p>results in the output when executed in IE8 or IE7:</p>
  
  <pre><code>"
  myDiv[0].outerHTML=&lt;div&gt;&lt;/div&gt;"
  </code></pre>
  
  <p>You can repro in this <a href="http://jsbin.com/utequp/1/edit" rel="nofollow">jsbin sample</a>, but remember to use IE8 or IE7 mode.</p>