Ticket #11199 (closed bug: invalid)
document.write in ready()
| Reported by: | marc@… | Owned by: | marc@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi,
A write in ready() leaves Firefox (9.0.1) in a wait state (the current tab display a wait cursor).
This occurs both in Windows and Linux with the latest JQuery.
Under Linux (Fedora 16), the string does not appear in the browser.
Here is the test:
<html>
<body>
<script type="text/javascript" src=" http://code.jquery.com/jquery-1.7.1.js"></script> <script type="text/javascript">
$(document).ready (
function() {
document.write("test");
}
);
</script> <div>
</body>
</html>
Cheers,
Marc
Change History
comment:3 Changed 17 months ago by rwaldron
- Status changed from pending to closed
- Resolution set to invalid
Please read https://developer.mozilla.org/en/document.write
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.