<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -822,7 +822,8 @@ function bindReady() {
 		// ensure firing before onload,
 		// maybe late but safe also for iframes
 		document.attachEvent(&quot;onreadystatechange&quot;, function() {
-			if ( document.readyState === &quot;complete&quot; ) {
+			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+			if ( document.readyState === &quot;complete&quot; &amp;&amp; document.body ) {
 				document.detachEvent( &quot;onreadystatechange&quot;, arguments.callee );
 				jQuery.ready();
 			}</diff>
      <filename>src/event.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>513053d62ba86ca6ab1f4646fdac3ec6819b2db9</id>
    </parent>
  </parents>
  <author>
    <name>John Resig</name>
    <email>jeresig@gmail.com</email>
  </author>
  <url>http://github.com/jquery/jquery/commit/81bfd9b870f658ce00eec48ea48a84d69c20bf05</url>
  <id>81bfd9b870f658ce00eec48ea48a84d69c20bf05</id>
  <committed-date>2009-11-07T07:00:43-08:00</committed-date>
  <authored-date>2009-11-07T07:00:43-08:00</authored-date>
  <message>Make sure that document.body exists, at least, in IE before the ready event is fired. Fixes #5443.</message>
  <tree>1ea3506223f42795abd132a123e7bb2fa8025acd</tree>
  <committer>
    <name>John Resig</name>
    <email>jeresig@gmail.com</email>
  </committer>
</commit>
