Require that, at least, document.body exists before firing the ready event. This...
authorJohn Resig <jeresig@gmail.com>
Mon, 9 Nov 2009 12:47:53 +0000 (13:47 +0100)
committerJohn Resig <jeresig@gmail.com>
Mon, 9 Nov 2009 12:47:53 +0000 (13:47 +0100)
commit262fcf7b7b919da1564509f621cf7480a5d5572b
tree12970cd5b241f2e43c72a41d9a1e03d8bb272a24
parent24e18d4cae4a1cb1a77323fd2e99300508e55642
Require that, at least, document.body exists before firing the ready event. This may stop jQuery from working on pages that don't create a document.body (such as Safari, when no body exists) but considering that we've required a document.body since 1.3 and haven't broken any pages, this doesn't appear to be a pressing issue. Used the test case written by dmethvin to verify the bug and the fix. Fixes #4320.
src/event.js