Why $(document).append() doesn't work in jQuery 1.9.1?
<p>Why following piece of code doesn't work since jQuery 1.9.1? With previous versions works fine.</p>

<pre><code>$(function () { 
    $(document).append(test);
    document.write('done');
});
var test = {
    version: "1.0",
};
</code></pre>

<p>JSFiddle: <a href="http://jsfiddle.net/Chessjan/NsjqM" rel="nofollow">http://jsfiddle.net/Chessjan/NsjqM/</a></p>

<p>In JS console it issues error like this:</p>

<pre><code>TypeError: document is null
safeFrag = document.createDocumentFragment(); jquery-1.9.1.js (line 5823)
</code></pre>

<p>Edit:</p>

<p>Thanks everybody for quick and extensive aswers. Observed issue was found by accident, and of course, <code>$(document.body).append()</code> is proper approach.</p>
